Discussion
Goaty Bill said:
to3m said:
You may be thinking of C++. Perhaps we should start a different thread to discuss that subject?
Better still, let's migrate the whole thing to Java public static void main(String []args) {
System.out.println("");
}
}
There you go. Who do I send my invoice over to?
to3m said:
Please see section 5.1.2.2.1 of the C standard. It seems that main shall be declared as taking either (void) or (int,char *[]).
You may be thinking of C++. Perhaps we should start a different thread to discuss that subject?
C99 5.1.2.2.1 - Program startup - clearly says "int main(void)", "int main(int argc, char *argv[])" or equivalent; or in some other implementation-defined manner. Therefore it's 100% valid C if the implementation allows for it. The only thing it's not is a strictly conforming program according to the standardYou may be thinking of C++. Perhaps we should start a different thread to discuss that subject?
Edited by Sexual Chocolate on Wednesday 16th April 11:21
Edited by Sexual Chocolate on Wednesday 16th April 11:22
Gassing Station | Jobs & Employment Matters | Top of Page | What's New | My Stuff