1.

If the user did not supply the value, what value will it take?(a) default value(b) rise an error(c) both default value & rise an error(d) errorThe question was posed to me by my school principal while I was bunking the class.My enquiry is from Default Arguments in portion Functions, Namespaces & Exceptions in C++ of C++

Answer»

The CORRECT choice is (a) default value

Easiest explanation - If the USER did not SUPPLY the value means, the COMPILER will TAKE the given value in the argument list.



Discussion

No Comment Found

Related InterviewSolutions