Question: Consider the following partial function definition: sphere bounce(sphere & s) { sphere t(s); // play with s and t (no copy constructors happen here) return
Consider the following partial function definition: sphere bounce(sphere & s) { sphere t(s); // play with s and t (no copy constructors happen here) return t; } How many times is the copy constructor employed when the bounce function is executed?
A. 0
B. 1
C. 2
D. 3
E. There is no way to tell how many times the copy constructor is called
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
