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

write a program to find 2 power of a 5digit number with out using big int and exponent ?

2387


officer say me - i am offered to a smoking , then what can you say

2103


what's the basic's in dot net

2188


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

25478


How do you define social class?

1070


What does oop mean in snapchat?

1239


what is different between oops and c++

2550


What is property in oops?

1063


Why do we use inheritance?

1132


write string class as your own class in java without using any built-in function

2503


i got a backdoor offer in process global,Bangalore..Can i work with it?

2845


What are oops functions?

1027


How long to learn object oriented programming?

1094


Write a c++ program to display pass and fail for three student using static member function

3401


What is oops concept with example?

1027