Knuk@lemmy.world to No Stupid Questions@lemmy.world · 7 months agoHow many floors are under an apartment on the second floor? (No basement)message-squaremessage-square57fedilinkarrow-up149arrow-down16file-text
arrow-up143arrow-down1message-squareHow many floors are under an apartment on the second floor? (No basement)Knuk@lemmy.world to No Stupid Questions@lemmy.world · 7 months agomessage-square57fedilinkfile-text
minus-squareyoevli@lemmy.worldlinkfedilinkEnglisharrow-up7·7 months agoEven in the CS world, ordinal phrases are still 1-indexed (e.g. the first element of an array vs element 0).
minus-squareJDubbleu@programming.devlinkfedilinkarrow-up3·7 months agoIt’s actually pretty common to say 0th index, but it depends a lot on context.
minus-squareyoevli@lemmy.worldlinkfedilinkEnglisharrow-up2·7 months agoSure, but that only applies when referring to indices or to the zeroth element specifically.
Even in the CS world, ordinal phrases are still 1-indexed (e.g. the first element of an array vs element 0).
It’s actually pretty common to say 0th index, but it depends a lot on context.
Sure, but that only applies when referring to indices or to the zeroth element specifically.