Accessing an Array

Learn how to access and update the elements stored in an array.

Array traversal

We can access the elements stored in an array by writing the array name, which is followed by its index in the square brackets.

Get hands-on with 1200+ tech skills courses.