+ 1
what is indexes?
plz give example
2 Answers
+ 3
Indexes means the numbering to the position of the elements in arrays...
index start from 0...
so first element of array will have index value 0...
for eg:
int arr[] = {1, 2, 3, 4, 5};
here 1 --> index = 0 // arr[0] = 1
2 --> index = 1 // arr[1] = 2
and so on
5 --> index = 4 // arr[4] = 5
total elements 5
highest index value is 4
+ 1
thanku so much goku. i got it :)