Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • C++

Idiom #87 Stop program

Exit immediately.
If some extra cleanup work is executed by the program runtime (not by the OS itself), describe it.

exit(1);

The behavior of exit() is pretty complicated, but idtors will be called.
return 0;

Only works in main(), actually.

New implementation...