Question: 15. Unlike Java, a swap function can be defined in C++ because a. C++ has call-by-reference b. C++ has pointers c. C++ s arrays are
15. Unlike Java, a swap function can be defined in C++ because a. C++ has call-by-reference b. C++ has pointers c. C++ s arrays are pointers d. a and b e. b and c 16. While templates are invaluable for generic programming, they have the downside that a. instantiation of multiple types can result in unintentional code bloat b. template syntax can be somewhat complex c. associated compiler errors are often difficult to understand d. all of the above e. none of the above - there is no downside to templates 17. The code new Employee [15] a. returns a reference to an array of 15 Employee objects b. returns a pointer to an array of 15 Employee objects c. returns a pointer to an array of 15 Employee references d. new can only be used on arrays of primitives
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
