The C Language doesn't support function overloading [1] because there is no name mangling in C.
But C allows one to write both
int main ()
and
int main ( int argc, char** argv )
When defining the main function. Isn't this function overloading?
The C Language doesn't support function overloading [1] because there is no name mangling in C.
But C allows one to write both
int main ()
and
int main ( int argc, char** argv )
When defining the main function. Isn't this function overloading?
 
    
     
    
    This is not overloading, because you can't have both a no-arg main and a 2-arg main in the same program. Overloading main would require there to be two versions of main in the same program with different signatures, where which one is executed would be determined... somehow.
 
    
    No, this is not function overloading, as the first declaration declares a variable while the second declaration declares a function.
