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
write a program to find 2 power of a 5digit number with out using big int and exponent ?
officer say me - i am offered to a smoking , then what can you say
what's the basic's in dot net
How Do you Code Composition and Aggregation in C++ ?
How do you define social class?
What does oop mean in snapchat?
what is different between oops and c++
What is property in oops?
Why do we use inheritance?
write string class as your own class in java without using any built-in function
i got a backdoor offer in process global,Bangalore..Can i work with it?
What are oops functions?
How long to learn object oriented programming?
Write a c++ program to display pass and fail for three student using static member function
What is oops concept with example?