Monday, 14 May 2012

what is the difference between exit() function and break statement?

exit( ) function terminates the entire program and gives the control to operating system.

break statement terminates the block and control goes out of the block. generally, break statements are often used in switch case statements.

No comments:

Post a Comment