Concerning return statements that functions can have:
a. Value returning functions can have the statement return computed_value;
b. void functions can have the statement return void;
c. void functions must have a return; statement, with no argument.
d. void functions may terminate using a return; statement without an argument, or they may have no return statement at all, terminating by falling off the end of the function block.
a) d) are correct
Explanation: b) is a syntax error., c) is too coercive (corrected in Part d)).
You might also like to view...
A package is:
a. A directory structure used to organize classes and interfaces. b. A mechanism for software reuse. c. A group of related classes and interfaces. d. All of the above.
?The body element is where the information about the document is provided to the browsers.
Answer the following statement true (T) or false (F)