I was educated from here that
void f();
void f(int a) {
printf("%d", a);
}
the parameter type list "wins". I did the following...
int fun(void); //parameter type list
int fun(int a, double b)//parameter type list
{
printf("%d, %f", a, b);
return 0;
}
I was expecting that compiler will throw an error (since overloading is not possible in c), but it didn't
Can anyone help me in this regards?
Thanks.