baatliwala@lemmy.world to Programmer Humor@programming.dev · 14 days agoLook at the way he writes for loops too smhlemmy.worldimagemessage-square40linkfedilinkarrow-up1454
arrow-up1454imageLook at the way he writes for loops too smhlemmy.worldbaatliwala@lemmy.world to Programmer Humor@programming.dev · 14 days agomessage-square40linkfedilink
minus-squarelime!@feddit.nulinkfedilinkarrow-up20·13 days agoarrays start at (offset) zero. lists start at (position) one. fight me.
minus-squareCargon@lemmy.mllinkfedilinkarrow-up3·13 days agoOnly edge lords still mentally stuck in CS101 conflate indices and offsets.
minus-squarelime!@feddit.nulinkfedilinkarrow-up6·edit-213 days agogood morning to you too. remember to have your coffee before going on the internet.
minus-squareCargon@lemmy.mllinkfedilinkarrow-up1·13 days agoI am agreeing with your distinction between indices and offsets.
minus-squareDon't forget to stay hydrated.🍉🍉🍉🍉🍉@sh.itjust.workslinkfedilinkarrow-up3·13 days ago arrays start at (offset) zero i.e.: *(array + i)
arrays start at (offset) zero. lists start at (position) one. fight me.
Only edge lords still mentally stuck in CS101 conflate indices and offsets.
good morning to you too. remember to have your coffee before going on the internet.
I am agreeing with your distinction between indices and offsets.
in a very agressive way. hence coffee.
i.e.:
*(array + i)