+ 2
Itâs part of the C standard library and terminates the program with an exit code. You can use it anywhere, but you should just let the main function return instead of calling exit yourself, so that the program terminates correctly, as exit does not allow the stack to be unwound.



