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