PandaDEV@lemmy.ml to Programmer Humor@lemmy.ml · 19 hours agounsafeCodelemmy.mlimagemessage-square13fedilinkarrow-up1253arrow-down113 cross-posted to: programmer_humor
arrow-up1240arrow-down1imageunsafeCodelemmy.mlPandaDEV@lemmy.ml to Programmer Humor@lemmy.ml · 19 hours agomessage-square13fedilink cross-posted to: programmer_humor
minus-squareBogus5553@lemm.eelinkfedilinkarrow-up25arrow-down2·edit-218 hours agoAny void main(){...} enjoyers?
minus-squareCausticFlames@sopuli.xyzlinkfedilinkarrow-up1·6 hours agoint main(void) { . . . } for me!
minus-squarestebo@lemmy.dbzer0.comlinkfedilinkarrow-up4·11 hours agobesides not requiring a return value, what difference does it make?
minus-squareFüsilier Breitlinger@infosec.exchangelinkfedilinkarrow-up4·11 hours ago@stebo02 @Bogus5553 Neither of them require a return value, but void main isn’t legal C++.
minus-squarestebo@lemmy.dbzer0.comlinkfedilinkarrow-up1·10 hours agoyeah I thought so, does it work in C?
minus-squareBuddahriffic@lemmy.worldlinkfedilinkarrow-up2·10 hours agoIt will also give an error if you try to add a return value anyways.
Any
void main(){...}
enjoyers?int main(void) { . . . }
for me!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.
while (true) {...}