0

why is the sum of two integer values a float value ?

26th Nov 2016, 7:21 PM
Prathiksha Bhojaraj
Prathiksha Bhojaraj - avatar
2 Réponses
+ 3
if u define float for the output value then u will get float value as output
26th Nov 2016, 8:10 PM
Krishna Teja
Krishna Teja - avatar
+ 1
Unless and until you define sum as float the result of two integers never be float
11th Feb 2017, 5:52 PM
Bharath yadav
Bharath yadav - avatar