Aug 22, 2013 at 7:12pm UTC
No. The standard states that only the following prototypes are allowed:
1 2
int main( )
int main( int Argc, char **Argv )
Edited: Bad prototype :(
Wazzak
Last edited on Aug 22, 2013 at 7:23pm UTC
Aug 22, 2013 at 7:17pm UTC
Isn't the second parameter supposed to be char * argv[]
or char ** argv
?
Last edited on Aug 22, 2013 at 7:17pm UTC
Aug 22, 2013 at 7:18pm UTC
In old C functions by default have return type int if it was omited. However this is not allowed by more late C/C++ standards. Imolementations may only set different number of arguments.
Last edited on Aug 22, 2013 at 8:13pm UTC
Aug 22, 2013 at 7:33pm UTC
it is not important where u use asterisks as far as i know
they r same:
char * P1;
char * P1;
char *P1;
Last edited on Aug 22, 2013 at 7:34pm UTC
Aug 22, 2013 at 8:01pm UTC
@Daleth
is there really any difference among the two??
i guess both of 'em are the same...
Aug 22, 2013 at 8:02pm UTC
i totally agree with @Ceset
:D
Aug 22, 2013 at 8:08pm UTC
My post was a response to Framework's previous version of the prototype, which he has already fixed. Before, he accidently wrote int ** argv
.
Aug 23, 2013 at 12:18pm UTC
@Daleth sorry for misunderstand