1.

Which is used to keep the call by reference value as intact?(a) static(b) const(c) absolute(d) virtualI have been asked this question during an internship interview.Query is from Argument Passing in chapter Functions, Namespaces & Exceptions in C++ of C++

Answer»

The correct option is (b) const

The EXPLANATION is: Because const will not CHANGE the value of the VARIABLES during the EXECUTION.



Discussion

No Comment Found

Related InterviewSolutions