What is the difference between function overloading and operator overloading?



What is the difference between function overloading and operator overloading?..

Answer / Km Simran

Function overloading refers to providing multiple functions with the same name but different parameters, allowing the compiler to choose the correct one based on the arguments passed. Operator overloading allows you to define the behavior of operators (like +, -, *, etc.) for user-defined types.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

What are the benefits of operator overloading?

1 Answers  


Do you know about C++ 11 standard?

1 Answers   Agilent, ZS Associates,


What is the difference between while and do while loop? Explain with examples.

1 Answers  


Who made c++?

1 Answers  


Can member data be public?

1 Answers  


What are the five basic elements of a c++ program?

1 Answers  


What is a node class in c++?

1 Answers  


Which compiler does turbo c++ use?

1 Answers  


Write a Program for find and replace a character in a string.

1 Answers  


Define whitespace in C++.

1 Answers   HCL,


Why would you use pointers in c++?

1 Answers  


Can constructor be static in c++?

1 Answers  


Categories