Which of the following are correct? Why are the others incorrect?
When a function having an array formal parameter is called, the formal array parameter …
a. names a copy of the array argument.
b. refers to exactly the same array as the calling program
c. is passed the address of the argument, and the function needs further information about the array size to safely use an array parameter
d. refers to the array using a name that is always different from the calling program's argument.
c) is correct.
Explanation: The rest are wrong. Answer a) suggests passing of arrays is call–by-value,. (It is not.) Answer b) suggests that the size of an array parameter is known to the function. (It is not.). Answer d) suggests that we cannot use the same identifier in the formal parameter and the argument. (Of course we can.)
You might also like to view...
?Case 5-3 There are different types of online communication and online writing-each with their own special purpose. Knowing what category of information one is trying to find on the Web will help him or her make more efficient and effective use of time. In each of the following questions, give the answer that best describes the item listed in the question. Identify a Web page that allows users to read the weekly deliberations of a remote wanderer whose work and discoveries are interesting.
A. ?A wiki B. ?A blog C. ?Skype D. ?Meetup
Which of the following is NOT shown in an amortization table?
A) Interest payments over the life of the loan B) Remaining balance of the loan C) Interest rate for each payment D) Principal payments over the life of the loan
Inventory characteristics for hardware and software assets that record the manufacturer and versions are related to technical functionality, and should be highly accurate and updated each time there is a change.
Answer the following statement true (T) or false (F)
Bitwise operators can be used only with integers.
Answer the following statement true (T) or false (F)