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...

C++11 enables you to define functions and constructors that receive list initializers as arguments. To do so, you specify a parameter that uses the ________ class template.

a. list_initializer b. initializer c. list d. initializer_list

Computer Science & Information Technology

Window's Snipping Tool is used to create ________ or snips

A) screen shots B) previews C) galleries D) libraries

Computer Science & Information Technology

Data warehouses are usually internal tables linked to Access Databases

Indicate whether the statement is true or false

Computer Science & Information Technology

You have recently been hired to manage your company's security team. You must ensure that an effective security team is built. Which policies should you keep in mind for this? (Choose all that apply.)

A. Team leadership must be obtained from within the security industry. B. Team members must include individuals from across the entire spectrum of security. C. Team goals must be clearly defined and understood. D. Team actions must have clearly defined rules.

Computer Science & Information Technology