1.

What are mandatory parts in the function declaration?(a) return type, function name(b) return type, function name, parameters(c) parameters, function name(d) parameters, variablesThe question was asked in quiz.This is a very interesting question from Function Declarations in chapter Functions, Namespaces & Exceptions in C++ of C++

Answer»

The correct option is (a) RETURN type, function name

For explanation: In a function, return type and function name are MANDATORY all else are just used as a choice.



Discussion

No Comment Found

Related InterviewSolutions