Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 12 Oct 2009
Offline Last Active Aug 15 2016 09:16 AM

#5041355 Best Practice for Values Return C/C++

Posted by on 09 March 2013 - 08:05 PM



What's is the best practice for values return in a function in C/C++ for Game Engines??



In C/C++ I can return one value with the sentence return.

Texture = LoadTexture(path);


or I can return the value on second via

LoadTexure(path, &Texture);


In both examples the variable Texture is get by the function LoadTexture.
What's is the better??