Answer the following questions true (T) or false (F)

1. Suppose a programmer supplies the ampersand for call-by-reference in a prototype, but forgets to put the ampersand in the definition. The compiler will nevertheless correctly interpret the programmer’s intent and compile the function.

2. Mixing call-by-reference and call-by-value parameters is strictly prohibited.


1. False
Explanation:. The compiler compiles what the programmer writes, not the intent.
2. False
Explanation: Whether a given parameter is call-by-value or call-by-reference depends on whether there is an ampersand present. It is perfectly legitimate to mix call-by-value and call-by-reference parameters.

Computer Science & Information Technology

You might also like to view...

Best practices are the result of finding the most successful set of test runs for an application.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

The ________ form control in Visual Basic allows the user to select a range in a worksheet when a button is clicked

A) TabStrip B) CommandButton C) RefEdit D) SpinButton

Computer Science & Information Technology

Currently, spell checking is only available when you assign a value of true to the ____ attribute.

A. checkspell B. lang C. contenteditable D. spellcheck

Computer Science & Information Technology

Which of the following cable connection types is an example of a mini DIN?

A. BNC B. PS/2 C. RCA D. DB9

Computer Science & Information Technology