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.
You might also like to view...
A(n) ____________________ gradient is one in which the color blending proceeds horizontally or vertically across an object's background.
Fill in the blank(s) with the appropriate word(s).
?One highly publicized form of social engineering is called post texting, which is a method of obtaining personal information under false pretenses.
Answer the following statement true (T) or false (F)