ProAnswers.org

Are the expressions *ptr ++ and ++ *ptr same?

No,*ptr ++ increments pointer and not the value pointed by it. Whereas ++ *ptr

increments the value being pointed to by ptr.