baatliwala@lemmy.world to Programmer Humor@programming.dev · 15 小時前Look at the way he writes for loops too smhlemmy.worldimagemessage-square30fedilinkarrow-up1359
arrow-up1359imageLook at the way he writes for loops too smhlemmy.worldbaatliwala@lemmy.world to Programmer Humor@programming.dev · 15 小時前message-square30fedilink
minus-squarelime!@feddit.nulinkfedilinkarrow-up14·13 小時前arrays start at (offset) zero. lists start at (position) one. fight me.
minus-squareCargon@lemmy.mllinkfedilinkarrow-up1·7 小時前Only edge lords still mentally stuck in CS101 conflate indices and offsets.
minus-squarelime!@feddit.nulinkfedilinkarrow-up2·edit-25 小時前good morning to you too. remember to have your coffee before going on the internet.
minus-squareCargon@lemmy.mllinkfedilinkarrow-up1·3 小時前I am agreeing with your distinction between indices and offsets.
minus-squareDon't forget to stay hydrated.🍉🍉🍉🍉🍉@sh.itjust.workslinkfedilinkarrow-up2·9 小時前 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)