Tuesday, February 21, 2012

What is the difference between *ptr++ and ++*ptr ?

Ans :--


*ptr++ increments the pointer and not the value pointed by it

++*ptr increments the value being pointed to by ptr

No comments:

Post a Comment