Question
What is the output of this C code?
int main()
{
int x = 0;
if (x == 1)
if (x == 0)
printf("inside if\n");
else
printf("inside else if\n");
else
printf("inside else\n");
}
Answer: Option C
Was this answer helpful ?
none
Was this answer helpful ?
Submit Solution