Always remember the Precedence and the associativity of the operators: Refer the link
http://en.wikipedia.org/wiki/Operators_in_C_and_C%2B%2B
1. Increment/Decrement(both Prefix and Postfix) has higher precedence than deference(*).
2. Deference and Prefix Increment/Decrement has same precedence but the associativity is from Right to left
*ptr++: can be treated as *(ptr++)
*++ptr: can be treated as *(++ptr) as associativity is Right to left
++*ptr: can be treated as ++(*ptr) as associativity is Right to left

Sharanu,
Amar