2 ms·
colonwqbang hit the nail on the head. For non-variadic functions, the function declaration provides the correct parameter type, and caller arguments are coerce
by loeg 7y ago
colonwqbang hit the nail on the head.
For non-variadic functions, the function declaration provides the correct parameter type, and caller arguments are coerced to the correct type.
> In C, isn't the input to anything coerced to the data type it will represent, in actual complete disregard of the input type?
In short: no. Implicit casts between incompatible types are warnings/errors.