Off by one solitudefed.dyne.orgimage Jaromil ( @jaromil@fed.dyne.org ) Programmer Humor@lemmy.ml • 12 hours ago message-square18fedilinkarrow-up1479
arrow-up1479imageOff by one solitudefed.dyne.org Jaromil ( @jaromil@fed.dyne.org ) Programmer Humor@lemmy.ml • 12 hours ago message-square18fedilink
minus-square Zagorath ( @Zagorath@aussie.zone ) linkfedilink2•11 hours agoAren’t those two the same thing? At least in C-style arrays, which might not be how they’re handled under the hood, but is at least how most languages present it to the programmer.
minus-square ReversalHatchery ( @ReversalHatchery@beehaw.org ) linkfedilinkEnglish3•10 hours agoin my understanding offset is technically the “relative index”, or how much you have to go further
Aren’t those two the same thing? At least in C-style arrays, which might not be how they’re handled under the hood, but is at least how most languages present it to the programmer.
in my understanding offset is technically the “relative index”, or how much you have to go further