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.
c)
Explanation: The other answers are foils, with nothing to recommend them except that they might sound good to some students who have not adequately prepared.
You might also like to view...
A short video presentation is called a(n) ________
Fill in the blank(s) with correct word
To align controls, you use the Align Top button in the:
A) Position group on the Arrange tab. B) Control Alignment group on the Tools tab. C) Position group on the Tools tab. D) Control Alignment group on the Arrange tab.