Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

What will be the output of the following C code?
#include < stdio.h >
void main()
{
{
int x = 8;
}
printf(“%d”, x);
}

What will be the output of the following C code?
#include < stdio.h >
void main()
{
{
int x = 8;
}
printf(“%d”, x);
}
a) 8
b) 0
c) Undefined
d) Compile time error

Answer: d

Join The Discussion