Comment

Comment by enriquto

> 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].

parent enriquto 6 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton