InterviewSolution
Saved Bookmarks
| 1. |
It is necessary to return the object if it was passed by reference to a function.(a) Yes, since the object must be same in caller function(b) Yes, since the caller function needs to reflect the changes(c) No, the changes are made automatically(d) No, the changes are made explicitlyThis question was addressed to me in an internship interview.My query is from Passing and Returning Object with Functions topic in division Object of Object Oriented Programming |
|
Answer» The correct option is (c) No, the changes are MADE automatically |
|