Question 26
What is the output of the following C code?
#include <stdio.h>
int x = 26;
int main(void) {
int x = 36;
{
int x = 46;
printf("%d ", x);
}
printf("%d", x);
return 0;
}Detailed Solution
Inner block scope declarations shadow outer scope declarations of the same identifier name.