Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Language%20in%20C%20Interview%20Questions%20and%20Answers

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

Answer: No. *ptr++ increments the pointer and not the value pointed by it, whereas ++*ptr increments the value being pointed to by ptr.
Is it helpful? Yes No

Most helpful rated by users:

©2024 WithoutBook