What will be the output of the following C code?
#include <stdio.h>
static int x = 5;
void main()
{
int x = 9;
{
x = 4;
}
printf("%d", x);
}
#include <stdio.h>
static int x = 5;
void main()
{
int x = 9;
{
x = 4;
}
printf("%d", x);
}A. 9
B. 5
C. 4
D. 0
Answer: Option C

Join The Discussion