#postfix/prefix #http://www.hotscripts.com/forums/c-c/57931-c-tip-what-difference-between-postfix-prefix-operators.html int n=0; ++n; /*prefix*/ n++; /*postfix*/ int n=0, m=0; n = ++m; /*first increment m, then assign its value to n*/ cout << n << m; /* display 1 1*/ int n=0, m=0; n = m++; /*first assign m's value to n, then increment m*/ cout << n << m; /*display 0 1*/ /*disassembly of the expression: m=n++;*/ mov ecx, [ebp-0x04] /*store n's value in ecx register*/ mov [ebp-0x08], ecx /*assign value in ecx to m*/ inc dword ptr [ebp-0x04] /*increment n*/ /*disassembly of the expression: m=++n;*/ inc dword ptr [ebp-0x04] /*increment n;*/ mov eax, [ebp-0x04] /*store n's value in eax register*/ mov [ebp-0x08], eax /*assign value in eax to m*/