#1  
1st September 2013, 10:09 AM
Unregistered
Guest
 
Posts: n/a

What is the difference between break statement and continue statement


What is difference between break statement and continue statement




  #2  
15th July 2015, 08:56 AM
aashisranjan784
Senior Member+++++
 
Join Date: Sep 2012
Posts: 8,627
Default Re: What is the difference between break statement and continue statement

Both the statements are used in C programming language. Here is the difference between break statement and continue statement:

Break Statement:

>>Break statement is used to transfer control of the program outside loop or switch case statement either conditionally or unconditionally.

>>Break statement is used in loop as well as switch case statement.

>>Break statement results in termination of the statement to which it applies.

Continue Statement:

>>Continue statement is used to skip some statement of the loop and moves to next iteration in the loop.

>>Continue statement is used only within loop.

>>This statement is used to end the current loop iteration and return control to the loop statement.
Do you have any question? or have anything to say?





Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0
vBulletin Optimisation by vB Optimise.
Please also check: