continue and break in c

break in c 

Break  is a keyword , by using  break we can terminate loop body or switch body in c programming language.

Using break is always  optional, but it should placed within the loop body or switch body only.

In implementation, where we known the maximum no of repetitions but some condition is there, where we required to terminate the repetition process, then go for break in c 

Language. 

 

Continue in c 

Continue  is   also  a keyword , by using continue we can  skip  the statements from loop body.

Using continues is always optional, but it should be  placed  with in the loop body only.

In implementation, where we  known the maximum  no of repetition , but some condition is there , where  we require  to skip  the statements from repeatation process , then go for  continue.

Scroll Up