+ 3

What is continue statement in c++?

continue statement.....

31st Jan 2018, 10:59 AM
kashif ahmad
kashif ahmad - avatar
2 Antworten
+ 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
Abhishek Tandon
Abhishek Tandon - avatar