I understand that if there are several function with the same name and same number of parameters the compiler is trying to find the best match (am I right so far?)
What I don’t understand is the difference between type promotion and type conversion.
Say I have this function decleration: void foo (double x) and then inside main:
int x = 5;
foo(x);
Is that considered conversion or promotion?
Type promotion is special case of type conversion.
http://en.wikipedia.org/wiki/Type_conversion#Type_promotion