+ 3
What is continue statement in c++?
continue statement.....
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