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
Write a program to encrypt the data in a way that inputs a four digit number and replace each digit by (the sum of that digit plus 7) modulus 10. Then sweep the first digit with the third, second digit with the fourth and print the encrypted number.
What is std namespace in c++?
How do you define/declare constants in c++?
Discussion on error handling of C++ .
When there is a global variable and local variable with the same name, how will you access the global variable?
What is the best way to declare and define global variables?
What is class syntax c++?
What is the difference between method overloading and method overriding in c++?
How do you declare A pointer to function which receives an int pointer and returns a float pointer
What is the full name of logo?
What is anonymous object in c++?
What are virtual constructors/destructors?
What are the methods of exporting a function from a dll?
What is the use of typedef?
What problems might the following macro bring to the application?