int a = 1;
int b = 1;
int c, d;

c = ++a; // like a = a + 1; c = a; 
d = b++; // like d = b; b = b + 1;

// finally
// a = 2, b = 2, c = 2, d = 1
