CronoDAS comments on Cargo Cult Language - Less Wrong

-1 Post author: SaidAchmiz 05 February 2012 09:32PM

You are viewing a comment permalink. View the original post to see all comments and the full post content.

Comments (43)

You are viewing a single comment's thread. Show more comments above.

Comment author: CronoDAS 06 February 2012 03:09:12AM 0 points [-]

I once had a compiler that threw up an error at "void main()" and forced me to use "int main()" instead...

Comment author: SaidAchmiz 06 February 2012 03:51:31AM *  0 points [-]

Yes, C99 specifies that main() should be of type int, and most modern compilers will flag void main() as an error. This wasn't always the case, and some compilers may still let you get away with it.