Home » C++ Programming » Operators » Question
  1. What do we need to use when we have multiple subscripts?
    1. operator
    2. operator()
    3. operator[].
    4. All of above
    5. None of these
Correct Option: B

The reason is that operator[] always takes exactly one parameter, but operator() can take any number of parameters.



Your comments will be displayed only after manual approval.