1.

What are the formal parameters in C++?(a) Parameters with which functions are called(b) Parameters which are used in the definition of the function(c) Variables other than passed parameters in a function(d) Variables that are never used in the functionI have been asked this question during an interview.The above asked question is from Basics in section Basics Concepts of C++ of C++

Answer»

Right option is (b) Parameters which are USED in the definition of the function

The EXPLANATION is: Formal parameters are those which are used in the definition of a function. They are the parameters that REPRESENT the actual parameters passed and they are the ONE which is used inside the function.



Discussion

No Comment Found

Related InterviewSolutions