+ 1
int[2] we used for this array three number {2,3,4} but why we did not use for [3] this array four number ?
2 odpowiedzi
+ 1
array index starts from 0. so 0,1,2 are the indexes for the array. hence 3 index will result out of bound error
0
thank both of you 🤙