c - ++ Operator on pointers -
my cs course taking bit of turn java c. i'm busy going on pointers @ moment , have come across ++ operator incrementing doens't work when dereferencing. more curiosity question else. not used pointers concept yet. doing wrong or pointers?
for example:
*pointer++; not increment value. *pointer+=1; increment value.
thanks in advance!
*pointer++;
is equivalent
*(pointer++); // pointer incremented
and not to
(*pointer)++; // pointee incremented
Comments
Post a Comment