Trusted by millions of Kenyans
Study resources on Kenyaplex

Get ready-made curriculum aligned revision materials

Exam papers, notes, holiday assignments and topical questions – all aligned to the Kenyan curriculum.

Explain why you must be careful when passing object to a function or returning objects from a function in a program.

Explain why you must be careful when passing objects to a function or returning objects from a function in a program.

Answers


Davis
Temporary copies of the objects are created that will be destroyed when the function terminates.When a temporary copy of an object is destroyed, the destructor function might destroy something needed elsewhere in the program.
Githiari answered the question on February 4, 2018 at 11:09

Answer Attachments

Exams With Marking Schemes

Related Questions