In which type is new memory location will be allocated?
(a) Only in pass by reference
(b) Only in pass by value
(c) Both in pass by reference and value
(d) Depends on the code
This question was posed to me in my homework.
This intriguing question comes from Passing Object to Functions in division Assigning Object, Pointer to Objects, Passing and Returning Object of Object Oriented Programming