enum { A, B, C = -B, D, E = +1, F, }; int main() { return A + B + C + D + E + F; // 0 + 1 + -1 + 0 + 1 + 2 = 3 }