+ 1

What if i add an int value and an double value in an int variable?

16th Jul 2016, 10:16 AM
Jyoti Sheokand
Jyoti Sheokand - avatar
5 Answers
+ 1
It is gonna treat the double value as an int value like if you add 7 + 4.5 its gonna add 7+4. Correct me if I'm wrong.
18th Jul 2016, 4:31 PM
Naman Sahni
Naman Sahni - avatar
0
no u r right Naman...if you double value you should use it in both of them
22nd Jul 2016, 1:10 AM
Dileep bhogavalli
Dileep bhogavalli - avatar
0
it will display only integer value
27th Jul 2016, 11:49 AM
mehavi doshi
mehavi doshi - avatar
0
wasd
8th Aug 2016, 8:06 AM
Rajput Sachin Chauhan
Rajput Sachin Chauhan - avatar
0
wasd
8th Aug 2016, 8:06 AM
Rajput Sachin Chauhan
Rajput Sachin Chauhan - avatar