Multiple Choices
(Choose 1 answer)
What is the output of the following code?
int x;
void test()
{ int x;
x = 20;
} int main () {
x = 100;
printf(" x = %d",x);
test();
printf(" x = %d",x);printf("");
}
return(0);
A. Error at compiling time
B. x = 100 x = 20
C. x = 100 x = 100
D. x = 20 x = 100