Difference between Operator overloading and Functional
overloading?
Answer Posted / rock
we use predefined operators like +,-,* etc.. to perform
operations only between normal variables even in order to
perform between user defined variables we use operator
overloading.
when two or more functions having same name but different
signatures we use function overloading.
Here compiler uses NAME MANGLING to differentiate between the
functions.
Is This Answer Correct ? | 17 Yes | 11 No |
Post New Answer View All Answers
What are exceptions c++?
How do you decide which integer type to use?
What is a tree in c++?
What is difference between rand () and srand ()?
Explain what is oop?
What is ios :: in in c++?
What is the difference between a declaration and a definition?
What are the advantages of inheritance in c++?
Define a pdb file.
Given the following seqment of code containing a group of nested if instructions: y = 9; if ((x==3) || (x == 5)) y++; else if (x == 2) y *= 2; else if (x == ) y-= 7; else y = 8; if the value of x is 4 before the nested IFs are executed, what is the value of y after the nested IFs are executed?
What is ifstream c++?
Define a constructor?
How we can differentiate between a pre and post increment operators during overloading?
Which c++ operator cannot overload?
How const int *ourpointer differs from int const *ourpointer?