pointer

sugar
04-10-2002, 02:18 AM
what's the difference between the two?

*ptr = *ptr + 1
(*ptr) = (*ptr) + 1

reboot
04-10-2002, 08:24 AM
There is no difference. * has higher precedence than + anyway.

[edit]

now, *ptr = *(ptr + 1) would be different...

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum