Comment on How many floors are under an apartment on the second floor? (No basement)
yoevli@lemmy.world 8 months agoEven in the CS world, ordinal phrases are still 1-indexed (e.g. the first element of an array vs element 0).
Comment on How many floors are under an apartment on the second floor? (No basement)
yoevli@lemmy.world 8 months agoEven in the CS world, ordinal phrases are still 1-indexed (e.g. the first element of an array vs element 0).
JDubbleu@programming.dev 8 months ago
It’s actually pretty common to say 0th index, but it depends a lot on context.
yoevli@lemmy.world 8 months ago
Sure, but that only applies when referring to indices or to the zeroth element specifically.