Question: Examine the following C++ code. What is most likely to happen with this loop? int i = 1; while(i < 100) { if(i > 50
Examine the following C++ code. What is most likely to happen with this loop? int i = 1; while(i < 100) { if(i > 50 && i % 25 == 0) { continue; } i++; } i will get updated to 0 The code will run 100 times An infinite loop will occur The continue statement will restart the loop
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
