Post #3420230
2026-06-27 03:18 UTC
"give me the zeroth item in a list" - sentence that only makes sense to progammers
Replies (1)
-
@nelson@wetdry.world 2026-06-27 03:25
@0x4d6165@transfem.social the true reason of why this was done was because in C and older languages (and just the computer in general) you calculate the Nth element of a list by literally offsetting N cells from the first index so the 0th index (aka no offset) is the first index, and so on kind of how both of these are the same: printf("%d\n", mem[5]); printf("%d\n", *(mem+5));