In the following example:
int a = 2;
float b = 3.2;
float c = a+b;
Is 'c' 5 or 5.2? Is there a rule, like "lower precision types are promoted" for example, or is there a rule like "the first operand is converted to the same type as the second"?
Thanks.