Solved

What Do the Calls to Exit(…)do? When Exit(0)and Exit(1)are Called,what

Question 28

Multiple Choice

What do the calls to exit(…) do? When exit(0) and exit(1) are called,what receives these arguments and what is done with them?


A) The exit( ) function stops the program.The argument is discarded.
B) The exit( ) function is obsolete.There is no longer any such function in the C++ libraries.
C) The exit( ) function stops the program.The argument is passed to the operating system which uses it for an error code.
D) The exit( ) function temporarily stops the program,and sends the argument to the operating system which uses it for an error code.The operating system restarts the program after fixing the error.
E) The exit( ) function allows the systems programmer to escape when the power supply catches fire.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions