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:

Verified
Correct Answer:
Verified
Related Questions
Q7: In C++, >> is used as a
Q9: To overload the pre-increment (++) operator for
Q10: The general syntax to overload the assignment
Q11: A class template is called a(n)_ type
Q16: Which of the following is the general
Q17: The function that overloads the _ operator
Q25: Operator functions typically return void.
Q29: Any function that overloads an operator is
Q34: The return type of the function operator
Q37: Operators can be overloaded either for objects