Q. What is the purpose of the ‘continue’ statement?

A
To exit the loop
B
To skip the current iteration and proceed to the next
C
To restart the loop
D
To terminate the program
Solution:

Continue skips the rest of the current loop iteration and moves to the next one.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!