Solved

Which of the Following Is the Syntax to Overload the Operator

Question 9

Multiple Choice

Which of the following is the syntax to overload the operator function operator[] as a member function of a class for nonconstant arrays?


A) Type& []operator(int index) ;
B) Type operator[](int index) ;
C) Type& operator[](int index) ;
D) Type [](int index) ;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions