1.

What should be passed in parameters when function does not require any parameters?(a) void(b) blank space(c) both void & blank space(d) tab spaceThe question was asked by my school teacher while I was bunking the class.My question is taken from Overloaded Function Names in portion Functions, Namespaces & Exceptions in C++ of C++

Answer»

Correct choice is (b) blank space

The best I can explain: When we does not want to PASS any ARGUMENT to a function then we leave the parameters blank i.e. FUNC() – function WITHOUT any PARAMETER.



Discussion

No Comment Found

Related InterviewSolutions