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 passed the address of the argument, and the function needs further information
about the array size to safely use an array parameter

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.)

Computer Science & Information Technology

You might also like to view...

Why is it important to define the project scope? How would you define the scope of the payroll project in this case?

What will be an ideal response?

Computer Science & Information Technology

Explain what an “idle loop” is in your own words. When does a computer start this kind of loop?

What will be an ideal response?

Computer Science & Information Technology

Which part of a PDU is most likely to provide data integrity checks for the data portion of the PDU?

A. frame identifier B. trailer C. sequence number D. port field

Computer Science & Information Technology

The ____________________ element contains an element for image content such as artwork or a map.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology