^ The original example code will compile on most modern compilers that are not in strict standard compliance mode, but it does not fully conform to the requirements of either C89 or C99. In fact, C99 requires that a diagnostic message be produced.
^ The main function actually has two arguments, int argc and char *argv, respectively, which can be used to handle command line arguments. The C standard requires that both forms of main be supported, which is special treatment not afforded any other function.
No comments:
Post a Comment