this post was submitted on 11 Feb 2025
267 points (95.3% liked)

Programmer Humor

33322 readers
493 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 33 points 20 hours ago* (last edited 20 hours ago) (7 children)

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

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

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

[–] stebo02@lemmy.dbzer0.com 4 points 13 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 12 hours ago

yeah I thought so, does it work in C?

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