cm0002@lemmy.world to Programmer Humor@programming.dev · 13 hours agounsafeCodelemmy.mlimagemessage-square10fedilinkarrow-up1192arrow-down110cross-posted to: programmerhumor@lemmy.ml
arrow-up1182arrow-down1imageunsafeCodelemmy.mlcm0002@lemmy.world to Programmer Humor@programming.dev · 13 hours agomessage-square10fedilinkcross-posted to: programmerhumor@lemmy.ml
minus-squareLucy :3@feddit.orglinkfedilinkarrow-up8arrow-down6·12 hours agoShould ≠ Needs to You can do it, and it will work, but it’s unclean and not best-practice. I wouldn’t be surprised if it’s undefined behaviour.
minus-squarexmunk@sh.itjust.workslinkfedilinkarrow-up18·11 hours agoJust to clarify. It is defined behavior - there’s plenty of undefined behavior in C but that ain’t one of them.
Should ≠ Needs to
You can do it, and it will work, but it’s unclean and not best-practice. I wouldn’t be surprised if it’s undefined behaviour.
Just to clarify. It is defined behavior - there’s plenty of undefined behavior in C but that ain’t one of them.