The ______ operator is overloaded to perform array subscripting.

  • ()
  • ->
  • =
  • []
The [] operator is overloaded to perform array subscripting in C++. This allows you to access individual elements of an array or a user-defined data structure as if it were an array. Overloading [] enables custom behavior when indexing objects.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *