this post was submitted on 11 Feb 2025
346 points (95.1% liked)

Programmer Humor

33681 readers
685 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
[–] [email protected] 38 points 2 weeks ago* (last edited 2 weeks ago) (8 children)

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

[–] [email protected] 28 points 2 weeks ago* (last edited 2 weeks ago) (7 children)

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

[–] [email protected] 7 points 2 weeks ago (4 children)

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

[–] [email protected] 2 points 2 weeks ago

It will also give an error if you try to add a return value anyways.

load more comments (3 replies)
load more comments (5 replies)
load more comments (5 replies)