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

Join The Discussion