 Quote by neurocomp2003
yes postfix and prefix...i can never remmeber if the post/pre imply the ++ or p
++p will increment the pointer and then perform the operation you ask it
and
p++ will increment the pointer after performing the opreation you ask it
you can always try
x=++p; printf("...",*x); printf("%p",x);
x=p++; printf("...",*x); printf("%p",x);
in C: printf("%p",x); is your friend unless you know how to use a debugging program.
|
Those are the exact same since the ++ is in a completely different expression from the printf call.