Pointer arithmetic in C increments the pointer by the size of the type it points to, not by 1. For an int pointer on this system, where int is 4 bytes, incrementing the pointer with +1 actually increments it by 4 bytes, moving it to the next int object.
Pointer arithmetic in C increments the pointer by the size of the type it points to, not by 1. For an int pointer on this system, where int is 4 bytes, incrementing the pointer with +1 actually increments it by 4 bytes, moving it to the next int object.
Pointer arithmetic in C increments the pointer by the size of the type it points to, not by 1. For an int pointer on this system, where int is 4 bytes, incrementing the pointer with +1 actually increments it by 4 bytes, moving it to the next int object.