if the postfix operaters ++ and -- have higher precedence than the = sign how come
*a++ = *b++;
will asign b to a, and then inc. the pointers?
if the postfix operaters ++ and -- have higher precedence than the = sign how come
*a++ = *b++;
will asign b to a, and then inc. the pointers?
Because the aforementioned ++ and -- are after the variable, if you had done:
*(++a) = *(++b);
it would be different.
Well… the parenthesis aren’t necessary.
*(++a) = *(++b) is the same as *++a = *++b;
but
*(a++) = *(b++) is not the same as *a++ *b++;