- 1

How to read an array?

For eg: In multidimensional array, how to read and expand array to get the answer of any question given like [0][1].

30th Apr 2020, 11:36 AM
Neha Parashari
Neha Parashari - avatar
3 Answers
+ 4
In multi dimensional array start from first Curley bracket. First take the no in brackets for example here it is 0 and it 2d so thre should be 2 array inside a array therefore you should see the array at 0th position ie 1st one and then go to 2nd curly bracket hear it is 2 so search for the no at 1st position ie 2nd element inside your array.
30th Apr 2020, 11:46 AM
Ayush Kumar
Ayush Kumar - avatar
+ 2
Just take table row,column concept eg: marksheet or any table format.[0][1],[0][2],[0][3] so first row and first,second,third column ,when it comes [1][1],[1][2],[1][3] this is second row first, second,third column you know array index starts with 0 as a java learner
30th Apr 2020, 1:39 PM
Jyothirani
Jyothirani - avatar
+ 1
It's always advisable to revise and practice again and again any concepts that you don't understand. have a looks here.. https://www.sololearn.com/discuss/1013475/?ref=app https://www.sololearn.com/discuss/1803798/?ref=app https://www.sololearn.com/discuss/15822/?ref=app
30th Apr 2020, 11:47 AM
minirkk
minirkk - avatar