What will be the output of the following C code?
#include <stdio.h>
static int x;
void main()
{
int x;
printf("x is %d", x);
}
#include <stdio.h>
static int x;
void main()
{
int x;
printf("x is %d", x);
}A. 0
B. Junkvalue
C. Run time error
D. Nothing
Answer: Option B

Join The Discussion