C Programming :: Basic Concepts - Discussion
Home > C Programming > Basic Concepts > MCQs Questions Discussion
11 / 90
What will be the output of the below C program.
#include<stdio.h>
int main()
{
printf("%d", out);
return 0;
}
int out=100;
#include<stdio.h>
int main()
{
printf("%d", out);
return 0;
}
int out=100;
ACompiler error: undefined symbol out in function main.
B100
C10
DNone of these
Answer: Option (Login/Signup)
Show Explanation
Asked In ::
STEP-BY-STEP
We will get compile-time error in this particular program, since variable 'out' used in the printf() function is not defined anywhere inside the main() function.
HEnce, option A is correct.
Read Full Answer
Report Error
Please Login First Click Here