Advertisement

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

Started by January 31, 2002 05:12 PM
0 comments, last by Mardigin 22 years, 10 months ago
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" KingGame Programmer: DigiPenwww.mpogd.com

This topic is closed to new replies.

Advertisement