<code>if (x > 0) y = 1; z = 2;</code> — if x = -5, what happens?
- A
Both skipped
- Bcheck_circle
y stays unchanged; z = 2 (z is OUTSIDE the if)
- C
y = 1; z = 2
- D
Compile error
Explanation
Without braces, only the next statement is in the if. <code>z = 2;</code> always executes.