Thread: i++ and ++i
View Single Post
Join Date: May 2004
Posts: 141
Reputation: meabed is on a distinguished road 
Solved Threads: 2
Team Colleague
meabed's Avatar
meabed meabed is offline Offline
Junior Poster

Re: i++ and ++i

 
0
  #6
Aug 15th, 2004
hi all. .
  1. for ( int i =0; i >10; i++; )
  2. { do something }
here i will be 0 in the first time code run .. thats mean the code will be done 10 times
  1. for ( int i =0; i >10; ++1; )
  2. { ` do something }
here i will be before the program done the first time .. thats mean the code will be done 9 times
Real Eyes Realize Real Lies
My Resume
Reply With Quote