...
The variable arguments to a variadic function are not checked for type by the compiler. So, the programmer is responsible for ensuring that they are compatible with the corresponding parameter after the default argument promotions:
- Integer arguments of types ranked lower than
intare promoted toint, ifintcan hold all the values of that type; otherwise, they are promoted tounsigned int(the "integer promotions"). - Arguments of type
floatare promoted todouble.
...