Prototypes for main() function
According to my knowledge, there are following two valid prototypes for main() function in C :
Now, If i try to create two functions with same name 'func' but different arguments then gcc gives the following error :
int main(int argc, char *argv)
My question is that how is this possible with main() function to have two different prototypes?
cmd.c:4: error: conflicting types for func
cmd.c:3: note: previous declaration of func was here