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

Popular posts from this blog

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

javascript - Blogger related post gadget image Resize s72-c [ Need Expert Help ] -