+ 4

Is division of int data type snd float is possible in c???

why so??

22nd Sep 2018, 4:22 AM
Sweet heart
Sweet heart - avatar
3 Respostas
+ 2
Here's how to do it in C++ static_cast<float>(50) / 2.5 here, 50 is first converted to float, then the division becomes 50.0/2.5
22nd Sep 2018, 5:06 AM
Dlite
Dlite - avatar
+ 1
Yes, it is possible. The answer will be in float data type. Because that int data type will be automatically converted to float type... For more information, visit here:- https://www.sololearn.com/learn/2281/?ref=app Hope that helps....😁😁😁
22nd Sep 2018, 5:07 AM
Daksh Beniwal
Daksh Beniwal - avatar