Google News
logo
CPP - Quiz(MCQ)
When will we use the function overloading?
A)
different function name but different number of arguments
B)
same function name but different number of arguments
C)
same function name but same number of arguments
D)
different function name but same number of arguments

Correct Answer :   same function name but different number of arguments


Explanation : Using the function overloading concept, we can develop more than one function with the same name, but the arguments passed should be of different types. Function overloading executes the program faster. Function overloading is used for code reusability and to save memory.

Advertisement