this post was submitted on 11 Feb 2025
281 points (95.2% liked)

Programmer Humor

33320 readers
513 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] lily33@lemm.ee 40 points 20 hours ago* (last edited 20 hours ago) (8 children)

That is why I use just int main(){...} without arguments instead.

[–] Bogus5553@lemm.ee 29 points 19 hours ago* (last edited 19 hours ago) (6 children)

Any void main(){...} enjoyers?

[–] stebo02@lemmy.dbzer0.com 6 points 12 hours ago (3 children)

besides not requiring a return value, what difference does it make?

[–] barubary@infosec.exchange 4 points 12 hours ago (1 children)

@stebo02 @Bogus5553 Neither of them require a return value, but void main isn't legal C++.

[–] stebo02@lemmy.dbzer0.com 1 points 11 hours ago

yeah I thought so, does it work in C?

load more comments (1 replies)
load more comments (3 replies)
load more comments (4 replies)