4 ms·
C style arrays are the lowest level model for flat arrays that I can imagine. Maybe it's more accurate to say that computers are confusing, and C is just being
by cynicalkane 16y ago
C style arrays are the lowest level model for flat arrays that I can imagine. Maybe it's more accurate to say that computers are confusing, and C is just being C.
- drblast 16y agoBut computers aren't confusing; the idea of a block of N bytes memory containing M-byte sized elements is dead-simple, and the same whether it's statically or dynamically allocated. The semantics associated with accessing those elements in C is anything but, especially for a beginner.
- cynicalkane 16y agoArrays are "dead simple", but addressing their elements can get very complicated, especially if you might want to address the array itself.
- shadowfox 16y agoCan you explain?