Solved

Which of the Following Is the Syntax to Declare the Operator

Question 30

Multiple Choice

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


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

Correct Answer:

verifed

Verified

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

Related Questions