+ 1

what is indexes?

plz give example

29th Apr 2018, 4:31 PM
rini
rini - avatar
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
29th Apr 2018, 4:37 PM
Goku
Goku - avatar
+ 1
thanku so much goku. i got it :)
29th Apr 2018, 4:40 PM
rini
rini - avatar