Answer 1: while (false) { x=3; }
I get a compile time error that states "x cannot be resolved". I do not get any compile time message stating the code is unreachable.Explanation
while (false) { x=3; } is a compile-time error because the statement x=3; is not reachable;
when I add the following line of code before this:
Code: Select all
int x;