Monday, October 12, 2020

C++ tips and C++ exit() function

C++ exit() function

  1. Partial C/C++ Function List
  2. decoding * and inc/dec operator combos like *++p , *p-- ,etc
  3. C and C++ Programming Tips
  4. exit()
  5. 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.

  6. Partial C/C++ Function List
  7. 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