3 ms·
I just learned a little more about C thanks to this. Compiling does cause a warning, though: gcc printy.c printy.c: In function ‘main’: printy.c:4: warning: re
by efnx 16y ago
I just learned a little more about C thanks to this. Compiling does cause a warning, though:
gcc printy.c
printy.c: In function ‘main’:
printy.c:4: warning: return type of ‘main’ is not ‘int’
- oakenshield 16y agoIt's an abuse of the standard (c90 and c99). main is supposed to return int and take either no arg or two args, but I think a lot of legacy code violates this, so most compilers let you off with a warning. That said, "-Wall -Werror" are two useful things to always add to your gcc invokation.