Question: TRUE/FALSE A function may change the values of its local variables (including any non-const value arguments it accepts). TRUE/FALSE Functions may not change any constants
TRUE/FALSE A function may change the values of its local variables (including any non-const value arguments it accepts). TRUE/FALSE Functions may not change any constants they have access to: global or local. TRUE/FALSE Although a function normally cannot change the memory locations owned by another function (its caller, for instance), it can when using the reference mechanism. TRUE/FALSE When a programmer calls a function with a non-const reference argument, they are giving that function permission to alter the memory locations they place in the corresponding actual argument. TRUE/FALSE That's why good programmers never call functions with reference arguments. TRUE/FALSE A function is a logical unit of work. TRUE/FALSE Functions help us concentrate on a single task at a time. TRUE/FALSE Functions make programs more difficult to debug because code is more scattered. TRUE/FALSE When designing a program that will use functions, details of all tasks must be known ahead of time-before the functions are even written. Given the following two function calls which exist in a program which compiles and runs successfully, explain how the compiler can distinguish between them. func(a, b, c): func(a, b): If a function needs to change a variable that exists in the caller, it must have a _________ argument (through which that variable can be passed). Such an argument can be distinguished from a value argument by the presence of a ___ symbol between the type and argument name. These arguments need no additional memory space and execute more (quick/slow) -ly than value arguments. This change in execution speed is because there is no need to (change/copy/calculate) the actual argument's value during the call-the formal argument is simply linked to the actual argument's memory space
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
