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;
Answer: B
Computer Science & Information Technology
You might also like to view...
The ________ is the amount of space between a cell's content and the borders of the cell
A) cell margin B) table style C) cell padding D) cell spacing
Computer Science & Information Technology
The Solver tool is available without requiring any additional installation
Indicate whether the statement is true or false.
Computer Science & Information Technology