difference between --a and a-- c++
// The difference is here: int a = 0; int b = a++; // b = 0, a = 1 // Where int a = 0; int b = ++a; // b = 1, a = 1
Source: www.cplusplus.com
// The difference is here: int a = 0; int b = a++; // b = 0, a = 1 // Where int a = 0; int b = ++a; // b = 1, a = 1