return -1.... return(-1)?

Started by
0 comments, last by Mardigin 22 years, 2 months ago
What is the difference between return -1; and return(-1); Why would I want to use one method over another?
Advertisement
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" KingGame Programmer: DigiPenwww.mpogd.com

This topic is closed to new replies.

Advertisement