Raised This Month: $ Target: $400
 0% 

increase understanding.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
potatis_invalido
BANNED
Join Date: Jul 2007
Location: 0 (world)
Old 08-28-2007 , 09:21   Re: increase understanding.
Reply With Quote #7

i = 1;

i == i ++
first it checks if i == i, wich of corse is true, then it sets i to i+1.

i++ != i
first it stores the value of i, 1, then it sets i to i+1, and then it checks if 1 == i where i is 2.

++i == i:
first i is set to i+1, then it checks if i == i, wich of corse is true.

i != ++i becose it first stores 1, then it adds 1 to to i, and then it will check if 1 == 2, which of corse is false.




I hope you understand. Everything works as it should work.

Last edited by potatis_invalido; 08-28-2007 at 09:24.
potatis_invalido 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