Always remember the Precedence and the associativity of the operators: Refer the link
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