subscript operator in c++

preview_player
Показать описание
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.
Рекомендации по теме