C difference between *ptr++ & ++*ptr




Question : Are *ptr++ and ++*ptr are same ?


Ans : Absolutely Not


*ptr++ means 
  • Increment the Pointer not Value Pointed by It
++*ptr means 
  • Increment the Value being Pointed to by ptr

Bookmark & Share