Example of using the postfix and prefix
#include <iostream> using namespace std; int main( void ) { int var1 = 0, var2 = 0; cout << var1++ << endl; cout << ++var2; return 0; }