Answer the following questions true (T) or false (F)
1. Call-by-reference is restricted to void functions.
2. Names of parameters in functions, especially function prototypes, have no meaning, and may be selected quite arbitrarily.
1. False
Explanation: There is no connection between the return mechanism and the parameter passing mechanism.
2. True
Explanation: Technically true, nevertheless for the following reasons, names should be selected with care. (I accept an answer of false from a student who provides a good explanation.)Functions should be self-contained modules that are designed separately from the rest of the program. On large projects, different programmers may be assigned to write of different functions. The programmer must choose meaningful names else the fellow programmers will have more difficulty than necessary in understanding the code. That several functions may have the same parameter names is of no matter.
You might also like to view...
A(n) ________ is a long dash in a sentence that marks a break in thought, similar to a comma but stronger
A) em dash B) em break C) trademark D) copyright
A technician finished installing antivirus software. Which of the following should the technician perform NEXT?
A. Run a full scan on the local disk. B. Remove infected files. C. Update antivirus signatures. D. Quarantine infected files.