Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
Davidbrcz
4mo ago
0 comments
Save
Share
For main it's explicitly allowed by the standard, and no return is equal to return 0
0 comments
1 comments · 1 top-level
top
newest
oldest
direwolf20
4mo ago
which is super weird. If they can tell the compiler to allow no return, only for main, they can also tell it to pretend void return is int return of 0, only for main.
j
/
k
navigate · click thread line to collapse