Which of the following is the syntax to declare 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);


Answer: C

Computer Science & Information Technology

You might also like to view...

Pressing the ____ key on the keyboard will activate the brush to paint in a layer mask.

a. F b. right bracket ( ] ) c. B d. E

Computer Science & Information Technology

The ____ print style prints a list of contacts similar to Card style.

A. Memo B. Phone List C. Rich Text D. Small Booklet

Computer Science & Information Technology

An embedded system is a computer system that is implanted in and dedicated to the control of another device.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

A(n) ____ is a body with no statements in it.

A. infinite loop B. empty body C. finite loop D. event-controlled loop

Computer Science & Information Technology