Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   urgent doubt (http://www.go4expert.com/forums/urgent-doubt-t25361/)

jainprateek2000 28Mar2011 22:51

urgent doubt
In the case of function overloading , please can someone explain how we can distinguish between integer and float values as arguments????? I mean how will the compiler know we want to give integer or float value????

kyle 29Mar2011 01:42

Re: urgent doubt
it doesn't know anything, the compiler knows nothing unless you make it clear and define everything.

xpi0t0s 29Mar2011 14:11

Re: urgent doubt
The compiler will throw an error if it can't resolve a call due to ambiguity.

All times are GMT +5.5. The time now is 01:41.