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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Algorithms Questions!