c++ first index 0 or 1

In C++, the first index is 0 In C++, the first index of an array is 0. This means that the first element of an array is accessed using the index 0.

In C++, the first index is 1 In some programming languages, such as MATLAB, the first index of an array is 1. This means that the first element of an array is accessed using the index 1. However, in C++, the first index is 0, not 1.