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

Join The Discussion