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


Please Help Members By Posting Answers For Below Questions

What are exceptions c++?

582


How do you decide which integer type to use?

570


What is a tree in c++?

557


What is difference between rand () and srand ()?

583


Explain what is oop?

609






What is ios :: in in c++?

624


What is the difference between a declaration and a definition?

577


What are the advantages of inheritance in c++?

648


Define a pdb file.

633


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?

1574


What is ifstream c++?

549


Define a constructor?

581


How we can differentiate between a pre and post increment operators during overloading?

583


Which c++ operator cannot overload?

539


How const int *ourpointer differs from int const *ourpointer?

598