1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

urgent doubt

Discussion in 'C' started by jainprateek2000, Mar 28, 2011.

  1. jainprateek2000

    jainprateek2000 New Member

    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????
     
  2. kyle

    kyle New Member

    it doesn't know anything, the compiler knows nothing unless you make it clear and define everything.
     
  3. xpi0t0s

    xpi0t0s Mentor

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

Share This Page