What is the difference between these two statements?
I know that i++ increments by one whatever i is, but I don't understand what ++i means. Because I'm looking at loops that I thought simply went from 0 to some number "for ( int i=0; i<100; i++ )", but they are written as: "for ( int i=0; i<100; ++i )". So they are not the same operation?
I know that i++ increments by one whatever i is, but I don't understand what ++i means. Because I'm looking at loops that I thought simply went from 0 to some number "for ( int i=0; i<100; i++ )", but they are written as: "for ( int i=0; i<100; ++i )". So they are not the same operation?
