#1
1st September 2013, 10:09 AM
|
|||
|
|||
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
|
|||
|
|||
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. |
|