C++ exit() function
- Partial C/C++ Function List
- decoding * and inc/dec operator combos like *++p , *p-- ,etc
- C and C++ Programming Tips
- exit()
- Partial C/C++ Function List
Prototype: void exit(int ExitCode);
Header File: stdlib.h (C) or cstdlib (C++)
Explanation: Exit ends the program. The ExitCode is returned to the operating system, similar to returning a value to int main.
A note about C vs. C++ Note that header files from the C standard library should have the form headername.h when used in a C program, and the form cheadername when used in C++ programs (note the c as a prefix). For instance, in a C program the stdlib header file would be included as follows
No comments:
Post a Comment