Precedence of ' ++ ' is more than the de-referencing operator ' * '
those two operators precedence is same, but due to associativity they are looking like ++ is more precedence than de-referencing operator.
*(p)++ ===> is equivalent to *p++ ===> (*(p++))
https://en.cppreference.com/w/c/language/operator_precedence
Have a look. The precedence of post increment is more than *. The associativity of these two are different so i think associativity is not interfering the output here.
64.3k questions
77.9k answers
244k comments
80.0k users