When a pointer is incremented then how many bytes will it move-00768
This subjective question is related to the book/course vu cs504 Software Engineering - I. It can also be found in vu cs504 Mid Term Solved Past Paper No. 2.
Question 1: When a pointer is incremented then how many bytes will it move to change its address
Answer:
If an integer occupies four bytes in the memory, then the yptr++; will increment its value by four. when we increment the yptr, it points to the next integer in the memory (page 160)