Why do we get ambiguity errors in c++?

Harvinder <[email protected]> Wed, 11 Feb 2009 15:24:29 +0530 (IST)
Newsgroups gmane.comp.programming.cppug
Message-ID <[email protected]>
Hi everyone can anyone tell me
if i give 
int sum(int,int);
int sum(float,int);
int sum(float,float);
int sum(int,float);
prototypes in a pgm and give a call to sum(2,3.4);
Then an ambiguity error comes between sum(int,int) and sum(int,float);
WHY???


      Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/

[Non-text portions of this message have been removed]



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/cppug/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/cppug/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[email protected] 
    mailto:[email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/