@[email protected] to Programmer [email protected] • 9 months agoExam Answerprogramming.devimagemessage-square125fedilinkarrow-up1781arrow-down110
arrow-up1771arrow-down1imageExam Answerprogramming.dev@[email protected] to Programmer [email protected] • 9 months agomessage-square125fedilink
minus-square@[email protected]linkfedilink32•edit-29 months agoGood thing this only uses ASCii characters, else you get into some fun discussions about UTF encoding
minus-square@[email protected]linkfedilink4•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