cm0002@lemmy.world to Programmer Humor@programming.dev · 3 months agounsafeCodelemmy.mlimagemessage-square13linkfedilinkarrow-up1245cross-posted to: [email protected]
arrow-up1245imageunsafeCodelemmy.mlcm0002@lemmy.world to Programmer Humor@programming.dev · 3 months agomessage-square13linkfedilinkcross-posted to: [email protected]
minus-squareLucy :3@feddit.orglinkfedilinkarrow-up9·3 months 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-up22·3 months 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.