What is the difference between executing the return 0; statement and its rough equivalent, a call to the exit(0); function, or the difference between return 1; and exit(1);?
a) These are very nearly equivalent anywhere they are encountered.
b) These are very different if encountered in a function other than main();.The exit function terminates the program, returning control to the operating system, whereas return only terminates the function, returning control to the calling function.
c) These are very nearly equivalent when executed in the main function. In main, these both terminate main and send a success code to the operating system, returning control to the operating system.
d) Both these return control to the free store manager by way of the exception controller, sending the argument as an error code.
b) These are very different if encountered in a function other than main();.The exit function terminates the program, returning control to the operating system, whereas return only terminates the function, returning control to the calling function., and c) These are very nearly equivalent when executed in the main function. In main, these both terminate main and send a success code to the operating system, returning control to the operating system.
a) is an obvious foil, d) is foil for the unwary test taker.
You might also like to view...
________ are applied to fields to limit or restrict the data so that only the values you want located display in the results
Fill in the blank(s) with correct word
A binary code that uses 8 switches has ________ different possible combinations
A) 64 B) 512 C) 1024 D) 256
Always take time to check the ____________________ of a worksheet before submitting it to your supervisor.
Fill in the blank(s) with the appropriate word(s).
What are the different ways you can see multiple workbooks on one screen at the same time? When might you want to do this?
What will be an ideal response?