subscript operator in c++

Опубликовано: 18 Февраль 2026
на канале: Computer Programming Video
277
10

In C++, the subscript operator (also known as the array subscript operator or the square bracket operator) is denoted by "[ ]" and is used to access individual elements of an array or other data structures, such as a vector or a string. For example, if "arr" is an array and "i" is an integer variable, then "arr[i]" would refer to the i-th element of the array.