PandaDEV@lemmy.ml to Programmer Humor@lemmy.ml · 23 hours agounsafeCodeimagemessage-square14fedilinkarrow-up1301arrow-down116
arrow-up1285arrow-down1imageunsafeCodePandaDEV@lemmy.ml to Programmer Humor@lemmy.ml · 23 hours agomessage-square14fedilink
minus-squarestebo@lemmy.dbzer0.comlinkfedilinkarrow-up6·15 hours agobesides not requiring a return value, what difference does it make?
minus-squareFüsilier Breitlinger@infosec.exchangelinkfedilinkarrow-up4·15 hours ago@stebo02 @Bogus5553 Neither of them require a return value, but void main isn’t legal C++.
minus-squarestebo@lemmy.dbzer0.comlinkfedilinkarrow-up1·14 hours agoyeah I thought so, does it work in C?
minus-squareBuddahriffic@lemmy.worldlinkfedilinkarrow-up2·14 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.