hairinmybellybutt@lemmy.world to Programmer Humor@lemmy.mlEnglish · 1 year agocountinglemmy.worldimagemessage-square63fedilinkarrow-up1442arrow-down127
arrow-up1415arrow-down1imagecountinglemmy.worldhairinmybellybutt@lemmy.world to Programmer Humor@lemmy.mlEnglish · 1 year agomessage-square63fedilink
minus-squareCanadaPlus@futurology.todaylinkfedilinkEnglisharrow-up8·edit-21 year agoYou could have “empty arrays” in a language if you wanted. The real reason is that you start with an offset of zero as you read an array from memory at hardware level, and so this way address is just “start address + element size * element number”.
You could have “empty arrays” in a language if you wanted. The real reason is that you start with an offset of zero as you read an array from memory at hardware level, and so this way address is just “start address + element size * element number”.