If i overload a function in which the formal argument are of float and double type and if I pass 3.14 as an argument which one | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

If i overload a function in which the formal argument are of float and double type and if I pass 3.14 as an argument which one

Will execute and why?

22nd Jul 2019, 3:36 PM
Anonymous
2 Answers
0
What is "3.14" is it a floating point number or is it a double?
22nd Jul 2019, 3:53 PM
Anonymous
0
So to execute the float one I have to type cast the argument?
22nd Jul 2019, 4:05 PM
Anonymous