1. The statement return sum; in a function (A) terminates the program after transmitting the value of sum to the operating system, (B) transmits the value of sum to the caller of the function, (C)...


1. The statement return sum; in a function (A) terminates the program after transmitting the value of sum to the operating system, (B) transmits the value of sum to the caller of the function, (C) terminates the function, (D) B and C, (E) A, B and C.


2. The declaration of a function (A) must precede its usage in main, (B) must be followed by its definition, (C) must use the same parameter names as the definition, (D) A and B, (E) none of these.


3. A local variable of a function (A) can be transmitted to the caller using return, (B) is destroyed before it can be returned, (C) cannot be transmitted using return, (D) none of these.



May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here