As I already know, the operator ++ has a difference between two situations: x++, and ++x; Though, When I try to write such a code:
int x = 5;
int* y = &x;
int value;
value = *y++ + ++*y;
the value of value, is 12, in the end of the equation. If I swap the equation to be
value = ++*y + *y++;
It is also 12, and I don't understand the rule. What is he doing first? In two cases the y pointer points to garbage.
Thanks, Uriah.