float d = 3.14f; int i = 1; auto sum = d + i;
The sum is 4. Why does this happen?
sum
According to cpp reference, int will be converted to float.
int
float
Aucun commentaire:
Enregistrer un commentaire