The following program
main()
{
int i = 2;
{ int i = 4, j = 5;
printf ("%d%d", i, j );
}
printf("%d%d", i, j );
}
A. | will not compile successfully |
B. | prints 4525 |
C. | prints 2525 |
D. | none of above |
Answer : A Explanation : This will not compile successfully. The scope of the variable ' j ' is the single printf statement that follows it. So. the last statement that involves ' j ' will complain about the undeclared identifier ' j ' |
|
Option: A Explanation : Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. |