3 ms·
When graphical gimmics steal the show: https://boredzo.org/pointers/boxes.png https://boredzo.org/pointers/boxes.png visualizes both pointers and their target (
by ktpsns 8y ago
When graphical gimmics steal the show: https://boredzo.org/pointers/boxes.png https://boredzo.org/pointers/boxes.png visualizes both pointers and their target (an integer) as 3d boxes. So the sizeof(int) is the edge length of this target?
Normally we see such guiding images with 2d boxes. There's nothing wrong with 3d because clearly, integers are also not 2d (they are not even 1d). However, don't associate the size of theses boxes with the memory size of an element. This overstresses the analogy and suggests the whole thing is a vector space, but it isn't.