hairinmybellybutt@lemmy.world to Programmer Humor@programming.devEnglish · 1 year agocall the doctor, the CS doctorlemmy.worldimagemessage-square44fedilinkarrow-up1418arrow-down128
arrow-up1390arrow-down1imagecall the doctor, the CS doctorlemmy.worldhairinmybellybutt@lemmy.world to Programmer Humor@programming.devEnglish · 1 year agomessage-square44fedilink
minus-squaredukk@programming.devlinkfedilinkarrow-up1·edit-21 year agoWell, you don’t really see many people accessing lists with pointers directly. Also 0-indexing does give us an extra number to index with(say 1-255 vs 0-255) Edit: 0-255, not 0-256
minus-squareFriendOfElphaba@sh.itjust.workslinkfedilinkarrow-up1·1 year agoIt’s 0-255 when you’re indexing like that. 11111111b = 255.
minus-squaredukk@programming.devlinkfedilinkarrow-up2·1 year agoOh sorry, you’re right. Amended my comment.
Well, you don’t really see many people accessing lists with pointers directly. Also 0-indexing does give us an extra number to index with(say 1-255 vs 0-255)
Edit: 0-255, not 0-256
It’s 0-255 when you’re indexing like that. 11111111b = 255.
Oh sorry, you’re right. Amended my comment.