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.
Loading...
Related Quiz
- What is the initial statement in a for loop typically used for?
- If you want to force floating-point division in C++ when dividing two integers, one of the numbers should be _______.
- To find the first mismatching elements of two ranges in C++ STL, use the _______ algorithm.
- How does the __forceinline keyword (in some C++ compilers) differ from the inline keyword?
- When might an inline function increase the overall size of the compiled code?