0
while(false){
    x = 3;
}

if(false){
    x = 5;

The compiler will complain and not compile the while statement, unreachable code. But it still compile for the if statement to have unreachable code. Reason?

sepp2k
  • 363,768
  • 54
  • 674
  • 675
OPK
  • 4,120
  • 6
  • 36
  • 66

0 Answers0