Is following functions are said to be overloaded?
int add(int a,int b)
char *add(int a,int b)
Answer Posted / arunkumar995
Function overloadig can not be achive only chaining the
return type.We must havv to change the aruments.
int add(int a,int b)
char*add(int a,int b)
one think that return type not make important role in
function overloading.In fun Overloading must effect on the
arguments.
Thus we say the given [int add(int a,int b)
char*add(int a,int b)]is not function overloaded.
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
How to use CMutex, CSemaphore in VC++ MFC
What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?
How do you define social class?
What are benefits of oop?
What are the 4 pillars of oop?
How is class defined?
How do you achieve runtime polymorphism?
How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction
What is polymorphism explain?
write knight tour problem which is present in datastructure
What is the difference between static polymorphism and dynamic polymorphism?
What is abstraction oop?
What is difference between inheritance and polymorphism?
if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?
Is react oop?