Jan 17, 2009

when implementing a +operation "string + (string)". how would you return the return value, by ref or by val.

when implementing a +operation "string + (string)". how would you return the return value, by ref or by val.
Return by value. (never return the reference to a local variable)

No comments:

Post a Comment