Supertecnoboff
Supertecnoboff

Reputation: 6606

What is the difference between *myptr++ and *(myptr++) in C

I am using C.

Say I have a pointer to a integer called *myptr

int *myptr;

What would then be the difference between:

*myptr++

and...

*(myptr++)

Thanks Dan

Upvotes: 3

Views: 547

Answers (1)

user529758
user529758

Reputation:

Since ++ has higher precedence than *, there is no difference between the two.

Upvotes: 15

Related Questions