I was revisiting pointers when I had this doubt.
int *ptr; int arr[5] = {10,20,30,40,50}; ptr = &arr[0];
Now printf(\"Value: %d\"
printf(\"Value: %d\"
The order of C Precedence from high priority:
() ++ * & for pointers * / + -
so,
*ptr++ equivlant to *(ptr++) ++*ptr equivlant to ++(*ptr)
and for this line *ptr++; it will only increment the ptr pointer.