> Pointers are variables that hold a reference to something in memory.
This sentence is extremely confusing or meaningless. I would rather say: "A pointer is an integer that indicates a position in the RAM."
Thus, if a pointer "p" indicates a position in memory, then "p+1" is a pointer that indicates the next position in the memory. The value on that cell of memory is often written as p[1].
This sentence is extremely confusing or meaningless. I would rather say: "A pointer is an integer that indicates a position in the RAM."
Thus, if a pointer "p" indicates a position in memory, then "p+1" is a pointer that indicates the next position in the memory. The value on that cell of memory is often written as p[1].