0

Index value how calculate ?

int[ ] b = {11, 45, 62, 70, 88};

2nd Feb 2020, 8:36 PM
Ehsan Wattoo
13 ответов
+ 5
The index starts at 0 and end at array length - 1. Your array has a length of 5. The last index is 4. 11 -> index 0 45 -> index 1 62 -> index 2 70 -> index 3 88 -> index 4
2nd Feb 2020, 8:57 PM
Denise Roßberg
Denise Roßberg - avatar
+ 2
Can you explain what you want to do?
2nd Feb 2020, 8:48 PM
Denise Roßberg
Denise Roßberg - avatar
+ 2
62 -> b[2] 70 -> b[3] index starts at 0.
2nd Feb 2020, 8:49 PM
Denise Roßberg
Denise Roßberg - avatar
+ 2
Ehsan Wattoo You have already posted this question. Please delete one. https://www.sololearn.com/Discuss/2155549/?ref=app
2nd Feb 2020, 8:50 PM
Denise Roßberg
Denise Roßberg - avatar
+ 2
Denise Roßberg thankssssss
2nd Feb 2020, 9:00 PM
Ehsan Wattoo
+ 2
index number start from 0
3rd Feb 2020, 4:29 AM
Milon
Milon - avatar
+ 1
Okkkk
2nd Feb 2020, 8:51 PM
Ehsan Wattoo
+ 1
Denise Roßberg blackwinter brothers please help me how index works ?
2nd Feb 2020, 8:55 PM
Ehsan Wattoo
+ 1
Thankssss to all
2nd Feb 2020, 8:57 PM
Ehsan Wattoo
+ 1
Ehsan Wattoo Your welcome :)
2nd Feb 2020, 9:01 PM
Denise Roßberg
Denise Roßberg - avatar
+ 1
For index value,just remember one thing is that it starts from zero not from one. So,here above given index has length of 5.therefore, b[0]=11, b[1]=45, b[2]=62, b[3]=70, b[4]=88.
4th Feb 2020, 3:02 PM
Kaushal Kishore
Kaushal Kishore - avatar
0
How calculate index ?
2nd Feb 2020, 8:48 PM
Ehsan Wattoo
0
Answer is 0,1,2,3,4 how ?
2nd Feb 2020, 8:53 PM
Ehsan Wattoo