adplus-dvertising
frame-decoration

Question

When an object is passed to a function, its copy is made in the function and then:

a.

The destructor of the copy is called when function is returned

b.

The destructor is never called in this case

c.

The destructor is called but it is always implicit

d.

The destructor must be user defined

Answer: (a).The destructor of the copy is called when function is returned

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. When an object is passed to a function, its copy is made in the function and then: