4 ms·
I suspect a lot is determined by presentation. Explaining arrays using physical dimensions breaks down after the 3rd dimension (and even the “cube of elements”
by twodave 3y ago
I suspect a lot is determined by presentation. Explaining arrays using physical dimensions breaks down after the 3rd dimension (and even the “cube of elements” examples tend to be a bit contrived). Expressing them as categories/levels of a nested loop would have been a lot more understandable for even my 16-year-old brain. Pointers weren’t completely inaccessible for me, but the syntax was so alien that nothing felt intuitive anymore after a certain point in the book. Most of the C operators I had learned to that point looked familiar to a lot of the math ones I already knew. Modulo made sense immediately. The Boolean ones were sensible enough. The bit-wise ones were okay once you at least know to convert to base 2 and back. Pointers just didn’t intuit the same way.