Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Is following functions are said to be overloaded?

int add(int a,int b)

char *add(int a,int b)

Answer Posted / abilask

Yes the said funtion add is overloaded.
But it is in ambiguous state because of passing element is
same.
Compiler will differ with the passing elements, but dont
consider the return value.
In this quiestion the two add funtion having two different
return type int & char * respectively.

I think the below one will be correct example for
overloaded function.

int add(int a,int b);

char *add(float a,int b);

Is This Answer Correct ?    8 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is static in oop?

1023


What is the real life example of polymorphism?

1111


Which is not an object oriented programming language?

934


What is a class in oop?

1044


Can you explain polymorphism?

1039


Which is better struts or spring?

984


What is methods in oop?

925


Why is there no multiple inheritance?

952


Can a varargs method be overloaded?

1037


Can you inherit a private class?

1057


Why is abstraction needed?

975


Explain virtual inheritance?

1125


What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?

2077


How Do you Code Composition and Aggregation in C++ ?

25256


What language is oop?

960