Which of the following are accurate comparisons between call-by-value and const call-by-reference?
a) Both protect against changing the caller’s argument.
b) Both are very fast for all sizes of objects.
c) Call-by-value copies the argument whereas const call-by-reference does not
d) Call by value uses more memory than const call-by-reference in making the copy.
a) Both protect against changing the caller’s argument. , c) Call-by-value copies the argument whereas const call-by-reference does not , and d) Call by value uses more memory than const call-by-reference in making the copy.
a) call-by-value makes a copy and uses the copy. This protects against changing the caller’s argument. Const call-by-reference provides a programming language mechanism to prevent the author of the code from writing code that will change the parameter so protects the caller’s argument. b) is wrong, call-by-value is much slower because it makes a copy.
You might also like to view...
A(n) _____ can replace many applications with one unified set of programs, making the system easier to use and more effective.
A. materials resource planning system B. management information system C. enterprise resource planning system D. decision support system
Saving a presentation as a video provides an opportunity to create the presentation one of ________ different formats and with different overall file sizes
Fill in the blank(s) with correct word
The file extension ________ is used for a PowerPoint template
Fill in the blank(s) with correct word
When Bandwidth Management is enabled, you can specify the minimum and maximum bandwidth available to the vNIC.
Answer the following statement true (T) or false (F)