0

Hello all,

what is the difference between

*grade++
*(grade++)
(*grade)++
 ++*grade
*++grade
*(++grade)

please with examples... I didn't understand manipulationg pointers very well
help asap

3
Contributors
4
Replies
5
Views
8 Years
Discussion Span
Last Post by Ancient Dragon
0

Write some test programs then.

Hi .. I did tests .. actually too many to the point that I got so confuzed :S

int a[2] = { 0, 0 };
int *p = a;
printf( "p=%p, loc1=%d, loc2=%d\n", (void*)p, a[0], a[1] );

hehehe what are all those modulouses :D
>>am not familiar with printf ..

thanks for replying ^^

0

how can I not confuze myself .. what is the best way to understanding pointers

and the ways to manipulating them as in the first post ?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.