JPDev@programming.dev to Programmer Humor@programming.dev · 8 months agoExam Answerprogramming.devimagemessage-square120fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1imageExam Answerprogramming.devJPDev@programming.dev to Programmer Humor@programming.dev · 8 months agomessage-square120fedilink
minus-squareSquishyPandaDev@yiffit.netlinkfedilinkarrow-up0·8 months agoGood thing this only uses ASCii characters, else you get into some fun discussions about UTF encoding
minus-squareSquishyPandaDev@yiffit.netlinkfedilinkarrow-up0·8 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