C++ is one of the most versatile languages in the world. It is used nearly everywhere for everything… systems programming (operating systems, device drivers, database engines, embedded, Internet of Things, etc.)

Enter Header Image Headline Here

Saturday 15 April 2017

C++ continue Statement

                              C++ continue Statement


It is Sometimes necessary to skip a certain test condition within a loop. In such case, continue; statement is used in C++ programming.

Syntax  of  continue:











In practice, continue; statement is almost always used inside a conditional statement.

Working of continue Statement : 


Example : C++ continue


C++ program to display integer from 1 to 10 except 6 and 9.

















Output :




In above program, when i is 6 or 9, execution of statement cout << i << "\t"; is skipped inside the loop using continue; statement.





0 comments:

Post a Comment

Popular Posts

Recent Posts

Categories

Unordered List

Text Widget