Is it possible to pass a variable to a function by reference and have the value stored in the original actual parameter remain unchanged?
What will be an ideal response?
Absolutely. Just because a variable is passed by reference does not mean the contents will change and be passed back out. Dependent upon the logic of the called function, the contents of the actual parameter may or may not change.
Computer Science & Information Technology
You might also like to view...
How many times will the following loop print hello? i = 1; while (i <= 10) { cout <<"hello"; }
a. 0. b. 9. c. 10. d. An infinite number of times.
Computer Science & Information Technology
Operating systems on embedded computers use a multitasking operating system.
Answer the following statement true (T) or false (F)
Computer Science & Information Technology