JPDev to Programmer Humor · 9 months agoExam Answerimagemessage-square129fedilinkarrow-up1798arrow-down111
arrow-up1787arrow-down1imageExam AnswerJPDev to Programmer Humor · 9 months agomessage-square129fedilink
minus-squareSquishyPandaDev@yiffit.netlinkfedilinkarrow-up36arrow-down1·edit-29 months agoGood thing this only uses ASCii characters, else you get into some fun discussions about UTF encoding
minus-squareqaz@lemmy.worldlinkfedilinkarrow-up11·9 months agoBut does it count the null byte or not?
minus-squareSquishyPandaDev@yiffit.netlinkfedilinkarrow-up4·9 months agoIn most languages, length method doesn’t count the null terminator. Might result in some fun memory errors
Good thing this only uses ASCii characters, else you get into some fun discussions about UTF encoding
But does it count the null byte or not?
In most languages, length method doesn’t count the null terminator. Might result in some fun memory errors