@[email protected] to Programmer [email protected] • 5 months agounsafeCodelemmy.mlimagemessage-square13fedilinkarrow-up1245cross-posted to: [email protected]
arrow-up1245imageunsafeCodelemmy.ml@[email protected] to Programmer [email protected] • 5 months agomessage-square13fedilinkcross-posted to: [email protected]
minus-square@[email protected]cakelinkfedilink27•5 months agoNot needed, main in C++ implicitly returns 0 if there is no return
minus-squareLucy :3linkfedilink10•5 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-square@[email protected]linkfedilink22•5 months agoJust to clarify. It is defined behavior - there’s plenty of undefined behavior in C but that ain’t one of them.
minus-squareLucy :3linkfedilink1•edit-25 months agoStill love it tho. You can make it whatever you want!
minus-square@[email protected]linkfedilink2•5 months agoshould have a space after „>” and two new lines after „?”. I guess markdown is miserable as well.
minus-squareColonel Paniclinkfedilink3•5 months agonot being able to master markdown might hint at why the commenter is struggling with C++
minus-square@[email protected]linkfedilinkEnglish5•5 months agoHey now, markdown serves it’s purpose. It’s not great, but as a web dev, I don’t want people expecting full WYSIWYG editors in every website cause fuck that!
Should return 0;.
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.
Just to clarify. It is defined behavior - there’s plenty of undefined behavior in C but that ain’t one of them.
>What is C++? A miserable huge pile of "should"s
Still love it tho. You can make it whatever you want!
should have a space after „>” and two new lines after „?”.
I guess markdown is miserable as well.
not being able to master markdown might hint at why the commenter is struggling with C++
Hey now, markdown serves it’s purpose. It’s not great, but as a web dev, I don’t want people expecting full WYSIWYG editors in every website cause fuck that!
Love me some Castlevania++