return -1.... return(-1)?
What is the difference between return -1; and return(-1);
Why would I want to use one method over another?
I don''t believe there is any difference. The only thing parenthesis does in cases like this is to modify order of operation. In this case there isn''t any operations, so the effect of the parenthesis is nothing.
- Kevin "BaShildy" King
Game Programmer: DigiPen
www.mpogd.com
- Kevin "BaShildy" King
Game Programmer: DigiPen
www.mpogd.com
- Kevin "BaShildy" KingGame Programmer: DigiPenwww.mpogd.com
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement