PandaDEV@lemmy.ml to Programmer Humor@lemmy.ml · 14 hours agounsafeCodelemmy.mlexternal-linkmessage-square12fedilinkarrow-up1262arrow-down113 cross-posted to: programmer_humor@programming.dev
arrow-up1249arrow-down1external-linkunsafeCodelemmy.mlPandaDEV@lemmy.ml to Programmer Humor@lemmy.ml · 14 hours agomessage-square12fedilink cross-posted to: programmer_humor@programming.dev
minus-squareBogus5553@lemm.eelinkfedilinkarrow-up28arrow-down1·edit-213 hours agoAny void main(){...} enjoyers?
minus-squarestebo@lemmy.dbzer0.comlinkfedilinkarrow-up6·6 hours agobesides not requiring a return value, what difference does it make?
minus-squareBuddahriffic@lemmy.worldlinkfedilinkarrow-up2·5 hours agoIt will also give an error if you try to add a return value anyways.
minus-squareFüsilier Breitlinger@infosec.exchangelinkfedilinkarrow-up2·6 hours ago@stebo02 @Bogus5553 Neither of them require a return value, but void main isn’t legal C++.
minus-squarestebo@lemmy.dbzer0.comlinkfedilinkarrow-up1·5 hours agoyeah I thought so, does it work in C?
Any
void main(){...}
enjoyers?int main(void) { . . . }
for me!besides not requiring a return value, what difference does it make?
It will also give an error if you try to add a return value anyways.
@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?
while (true) {...}