it says in the program:Code:#include <iostream>
using namespace std;
int main()
{
for ( int x = 0; x < 10; x++ )
{
cout << x << endl;
}
cin.get();
}
Quote:
x is updated before the condition is checked.
When I debug this code, I don't see any change when I
use ++x or x++ ?
It seems that whatever I use, when I enter the 'for statement',
it increments like this:
After 'for statement' x is: 0
Second time x is: 1
and so on...