3 ms·
I think it's worth mentioning that in the Plan 9 dialect of C, main returning void is absolutely correct. Instead of returning an integer, you call exits() whic
by mycroftiv 16y ago
I think it's worth mentioning that in the Plan 9 dialect of C, main returning void is absolutely correct. Instead of returning an integer, you call exits() which uses a string argument. The fact that Ken Thompson and Rob Pike made this design choice for Plan 9 is interesting. This is just a related fact, not an attempt to argue that void main is acceptable in standard ansi/iso C.