cm0002@lemmy.world to Programmer Humor@programming.dev · 27 days agounsafeCodelemmy.mlimagemessage-square4fedilinkarrow-up13arrow-down10
arrow-up13arrow-down1imageunsafeCodelemmy.mlcm0002@lemmy.world to Programmer Humor@programming.dev · 27 days agomessage-square4fedilink
minus-squareKwdg@discuss.tchncs.delinkfedilinkarrow-up1·27 days agoNot needed, main in C++ implicitly returns 0 if there is no return
minus-squareLucy :3@feddit.orglinkfedilinkarrow-up0·27 days 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.
Not needed, main in C++ implicitly returns 0 if there is no return
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.