Program Termination
Collapse the table of content
Expand the table of content

Program Termination

 

In C++, there are several ways to exit a program:

  • Call the exit function.

  • Call the abort function.

  • Execute a return statement from main.

Show:
© 2016 Microsoft