Before I ask my question, here is a declaration:
unsigned char *c_a
Now I have this line:
(int)c_a += sizeof(whatever);
which used to work with an older compiler, but my new compiler complains with this error:
"error: invalid lvalue in assignment"
I've changed it to this line, which solves the compiler problem:
c_a += (int)sizeof(whatever);
Question is, are:
(int)c_a += sizeof(whatever);
and
c_a += (int)sizeof(whatever);
functionally equivalent? They seem to be, but I want to make sure I didn't do something stupid here.
Thanks.