asked 128k views
5 votes
What is an index of an array? what are legal index values?

asked
User Vilelam
by
7.0k points

1 Answer

2 votes
The index of an array refers to the position of the elements within an array. The legal index values are numeric, and the first value is always 0. If you have 3 items in an array, the first item will be index 0, the second will be index 1, and the 3rd will be index 2.
answered
User Yingbo Miao
by
7.7k points

No related questions found

Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.