| 
 PureBytes Links 
Trading Reference Links 
 | 
Bill,
>From the web:
Example, prefix form 
i = 4;
j = 5;
k= j * ++i;
k is 25, i is 5 
because i is incremented first and then multiplied
Example, posfix form 
i = 4;
j = 5;
k= j * i++;
k is 20, i is 5 
because i is multiplied first and then incremented 
Hope this helps,
Peter
-----Original Message-----
From: Bill [mailto:bmck@xxxxxxxxxxxxxx] 
Sent: Tuesday, April 15, 2003 4:05 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] i++ and ++i
  I have a query from the ReadMe file in v4.31.1
> implemented C-style postfix and prefix increment/decrement operators
> 
> i = 10;
> WriteIf( i++ );
> WriteIf( ++i );
> WriteIf( i );
can someone please explain what  i++  and  ++i  means.
Bill.
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/ 
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Make Money Online Auctions! Make $500.00 or We Will Give You Thirty Dollars for Trying!
http://us.click.yahoo.com/yMx78A/fNtFAA/i5gGAA/GHeqlB/TM
---------------------------------------------------------------------~->
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
 
 |