共用方式為


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.

See Also

Concepts

main: Program Startup