May be in other ways but adding a float and an int is totally OK and defined in the C++ specification.
Conversions
...
Otherwise, if either operand is float, the other operand is converted to float
...
May be in other ways but adding a float and an int is totally OK and defined in the C++ specification.
Conversions
...
Otherwise, if either operand is float, the other operand is converted to float
...