1.

Which of the following permits function overloading on c++?(a) type(b) number of arguments(c) type & number of arguments(d) number of objectsThe question was posed to me in an online quiz.The above asked question is from Overloaded Function Names in division Functions, Namespaces & Exceptions in C++ of C++

Answer»

Correct option is (c) type & number of arguments

The BEST I can EXPLAIN: Both type and number of arguments permits FUNCTION overloading in C++, like

int func(int);

float func(float, float)

Here both type and number of arguments are different.



Discussion

No Comment Found

Related InterviewSolutions