1.

Name two jump statements and their use.

Answer»

The two jump statements are break and continue. 

Their use is defined as follows : 

Some times we need to exit from a loop before the completion of the loop then we use break statement and exit from the loop and loop is terminated. Sometimes we need to iterate the loop before it finishes all the statements inside a loop then we use continue statement and jump to the next iteration of a loop.



Discussion

No Comment Found

Related InterviewSolutions