• DannyBoy@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    1
    ·
    17 days ago

    It’s from when arrays were just a block of memory and the index was the offset. So you’d start at pointer x and read memory from there. x + i was your memory location. So you’d start at x + 0 to read your first data element. x + 1 would be the location in memory of the second element.