About Lesson
Elements of an array are accessed using their index, which starts from 0 for the first element and increments by 1 for each subsequent element.
cout << numbers[0]; // Accessing the first element of the ‘numbers’ array
numbers[2] = 10; // Assigning a value to the third element of the ‘numbers’ array
Â
Join the conversation