What is continue statement in c++? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

What is continue statement in c++?

continue statement.....

31st Jan 2018, 10:59 AM
kashif ahmad
kashif ahmad - avatar
2 Answers
+ 11
continue statement implies as its name suggests. here is an example: for(i=1;i<10;i++) { if(i==5) continue; cout<<i; } # Output : 12346789 So you can see that in the output only number 5 is missing. This is because when i became 5 the execution of the statements below the if statement are skipped. Hence the output
31st Jan 2018, 12:14 PM
Infinity
Infinity - avatar