PandaDEV@lemmy.ml to Programmer Humor@lemmy.ml · 17 hours agounsafeCodelemmy.mlexternal-linkmessage-square14fedilinkarrow-up1283arrow-down115 cross-posted to: programmer_humor@programming.dev
arrow-up1268arrow-down1external-linkunsafeCodelemmy.mlPandaDEV@lemmy.ml to Programmer Humor@lemmy.ml · 17 hours agomessage-square14fedilink cross-posted to: programmer_humor@programming.dev
minus-squarestebo@lemmy.dbzer0.comlinkfedilinkarrow-up6·9 hours agobesides not requiring a return value, what difference does it make?
minus-squareFüsilier Breitlinger@infosec.exchangelinkfedilinkarrow-up4·9 hours ago@stebo02 @Bogus5553 Neither of them require a return value, but void main isn’t legal C++.
minus-squarestebo@lemmy.dbzer0.comlinkfedilinkarrow-up1·8 hours agoyeah I thought so, does it work in C?
minus-squareBuddahriffic@lemmy.worldlinkfedilinkarrow-up2·8 hours agoIt will also give an error if you try to add a return value anyways.
besides not requiring a return value, what difference does it make?
@stebo02 @Bogus5553 Neither of them require a return value, but
void main
isn’t legal C++.yeah I thought so, does it work in C?
It will also give an error if you try to add a return value anyways.