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) The exit( ) function stops the program. The argument is passed to the
operating system which uses it for an error code.

Computer Science & Information Technology

You might also like to view...

Answer the following questions true (T) or false (F)

1. A C++ declaration is a definition that also allocates storage for an identifier's value (or function's body etc.). 2. The range of values for an int variable is from about 0 to +2 billion.

Computer Science & Information Technology

An MS-DOS __________ parameter allows you to view a directory list one screen at a time.

a. more b. pause c. screen d. hold

Computer Science & Information Technology

Even if a file is corrupted, you can still open it and use it

Indicate whether the statement is true or false

Computer Science & Information Technology

?When practicing a presentation, write a script so that the presentation can be read to the audience.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology