Can function return object in c++? If yes, how? If no, why? -
can function return object in c++?
can function return object in c++?
yes, copyable or movable object type can function return type.
if yes, how return object function?
with return statement gives value of object.
int f() {return 42;}
Comments
Post a Comment