baatliwala@lemmy.world to Programmer Humor@programming.dev · 4 days agoLook at the way he writes for loops too smhlemmy.worldimagemessage-square40linkfedilinkarrow-up1441arrow-down112
arrow-up1429arrow-down1imageLook at the way he writes for loops too smhlemmy.worldbaatliwala@lemmy.world to Programmer Humor@programming.dev · 4 days agomessage-square40linkfedilink
minus-squarelime!@feddit.nulinkfedilinkarrow-up19·4 days agoarrays start at (offset) zero. lists start at (position) one. fight me.
minus-squareDon't forget to stay hydrated.🍉🍉🍉🍉🍉@sh.itjust.workslinkfedilinkarrow-up3·4 days ago arrays start at (offset) zero i.e.: *(array + i)
minus-squareCargon@lemmy.mllinkfedilinkarrow-up3arrow-down2·4 days agoOnly edge lords still mentally stuck in CS101 conflate indices and offsets.
minus-squarelime!@feddit.nulinkfedilinkarrow-up6·4 days agogood morning to you too. remember to have your coffee before going on the internet.
minus-squareCargon@lemmy.mllinkfedilinkarrow-up1·4 days agoI am agreeing with your distinction between indices and offsets.
arrays start at (offset) zero. lists start at (position) one. fight me.
i.e.:
*(array + i)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.