1.

Give the difference between ‘break’ and ‘exit()’ statements.

Answer»

The ‘break’ statement can be used to terminate a repeated structure (loops) such as ‘while’, do-while and for and multi-branching statements like ‘switch’.

The execution of a program can be stopped at any point with ‘exit ( )’.



Discussion

No Comment Found