#include main() { int i = 1, // i is initialised to 1. j; cout << i << endl; // "i++" and "++i" have no observable differences when they are used as // statements by themselves (not part of an expression). i++; // i is incremented to 2. cout << i << endl; ++i; // i is incremented to 3. cout << i << endl; j = i++; // j is assigned to 3 and then i is incremented to 4. cout << "i=" << i << ", j=" << j << endl; j = ++i; // i is incremented to 5 and then j is assigned to 5. cout << "i=" << i << ", j=" << j << endl; return 0; }