0
Index value how calculate ?
int[ ] b = {11, 45, 62, 70, 88};
13 Respostas
+ 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
+ 2
Can you explain what you want to do?
+ 2
62 -> b[2]
70 -> b[3]
index starts at 0.
+ 2
Ehsan Wattoo
You have already posted this question. Please delete one.
https://www.sololearn.com/Discuss/2155549/?ref=app
+ 2
Denise Roßberg thankssssss
+ 2
index number start from 0
+ 1
Okkkk
+ 1
Denise Roßberg blackwinter brothers please help me how index works ?
+ 1
Thankssss to all
+ 1
Ehsan Wattoo Your welcome :)
+ 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.
0
How calculate index ?
0
Answer is 0,1,2,3,4 how ?