Q.

What will be the output of the program? #include<stdio.h>
int main()
{
int X=40;
{
int X=20;
printf("%d ", X);
}
printf("%d\n", X);
return 0;
}

A. 40 40
B. 20 20
C. 20
D. error
Answer» D. error
1.7k
0
Do you find this helpful?
3

Discussion

No comments yet

Related MCQs