Raised This Month: $ Target: $400
 0% 

increase understanding.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Lee
AlliedModders Donor
Join Date: Feb 2006
Old 08-27-2007 , 20:42   Re: increase understanding.
Reply With Quote #4

As you have found, djmd378 is mistaken.

var++ - post-increment - returns var, then increments var
++var - pre-increment - increments var, then returns var

The difference between the two doesn't make a practical difference if you use them as a single statement - only if you use the return value.

Last edited by Lee; 08-27-2007 at 20:51.
Lee is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:12.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode