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 >
int x;
void main()
{
if (x)
printf(“hi”);
else
printf(“how are u”);
}

What will be the output of the following C code?
#include < stdio.h >
int x;
void main()
{
if (x)
printf(“hi”);
else
printf(“how are u”);
}
a) hi
b) how are you
c) compile time error
d) error

Answer: b

Join The Discussion