1.

Overloaded functions are ________________(a) Very long functions that can hardly run(b) One function containing another one or more functions inside it(c) Two or more functions with the same name but different number of parameters or type(d) Very long functionsI got this question during an online interview.Asked question is from Overloaded Function Names topic in section Functions, Namespaces & Exceptions in C++ of C++

Answer»

Right OPTION is (c) Two or more FUNCTIONS with the same name but different number of parameters or type

To EXPLAIN I would say: This is the DEFINITION of function overloading i.e. function having same name but different number of parameters and types.



Discussion

No Comment Found

Related InterviewSolutions