W
Walter Roberson
Robbie Hatley said:Walter Roberson wrote:
ISO/IEC 9899:1999 (E) section 5.1.2.2.1 :
5.1.2.2.1 Program startup
It shall be defined with a return type of int and with no
parameters:
or with two parameters (referred to here as argc and argv,
or equivalent;9) or in some other implementation-defined manner.
Your posting to which I replied said "There must be exactly ONE main,
with one of these two signatures" You missed that last part "or in some
other implementation-defined manner", which allows for the
possibility of other signatures.
Now, you can try to violate that by having functions called
"main" in two different modules
"try"?? I showed source code!
Your amended answer should therefore not have been
"No. You might be able to trick it, but don't do that"; it should
instead have been "Yes, you can trick it -- but don't do that".