Loading…
december code / try / c
No account needed. Answer, see why, move on.
Problem
What happens when this C code is compiled and run?
int a = 0, b = 5; if (a) if (b) printf("x"); else printf("y"); printf("|\n");
It prints |
It prints y|
It prints x|
It does not compile: the else has no matching if
Nothing here is saved. Create a free account to keep your progress, take an assessment and get your readiness score.