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

Join The Discussion