What is the difference between function overloading and operator-00749

Online Quiz This subjective question is related to the book/course vu cs502 Fundamentals of Algorithms. It can also be found in vu cs502 Mid Term Solved Past Paper No. 1.

Question 1: What is the difference between function overloading and operator overloading?
Answer:

Difference b/w function overloading and operator overloading is:

In function overloading, the functions have the same name but differ either by the number of arguments or the type of the arguments.

Operator overloading is to allow the same operator to be bound to more than one implementation, depending on the types of the operands.


Choose an organization

Theme Customizer

Gaussian Texture



Gradient Background