What is the output? int a = 5, b = 10;
What is the output?
int a = 5, b = 10;
if (a > b)
if (b > 0) printf("X");
else printf("Y");
Show answerHide answer
Correct answer: (B) No output
Explanation
else pairs with the inner if; the outer if is false, so nothing prints.