0

int a=10,b=.5; cout<<double(a*b);

What is the output

14th Mar 2020, 9:38 AM
Yatharth Mittal
Yatharth Mittal - avatar
4 Answers
+ 4
Hey Yatharth Mittal why don't you write this on code playground run it and see the result for yourself then manipulate it the more to understand how it works better
14th Mar 2020, 9:42 AM
āœ³AsterisKāœ³
āœ³AsterisKāœ³ - avatar
+ 1
Cout prints out the value of a and b using double that is if there is decimal in the multiplication i want it too
14th Mar 2020, 9:52 AM
āœ³AsterisKāœ³
āœ³AsterisKāœ³ - avatar
0
I want the explanation plz
14th Mar 2020, 9:48 AM
Yatharth Mittal
Yatharth Mittal - avatar