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 >
static int x;
void main()
{
int x;
printf(“x is %d”, x);
}

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

Answer: b

Join The Discussion