0

Can someone help me I dont understand [0][2]

30th Aug 2016, 12:59 AM
mich le'
mich le' - avatar
9 Answers
+ 1
arrays are zero based meaning they begin with 0 instead of 1. goto your lessons and look for array and goto the bottom itll explain.
30th Aug 2016, 1:47 AM
Aquarius
Aquarius - avatar
+ 1
this means the element of1 row and 3 column in array
31st Aug 2016, 10:37 AM
Rahul Taneja
Rahul Taneja - avatar
+ 1
Imagine this: [ ][ ][x][ ][ ][ ][ ][ ][ ][ ][ ][ ]... [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]... [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]... [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]... [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]... [0][2] is the x. It's a matrix. The first integer is the lines and the other is the columns.
5th Sep 2016, 9:55 PM
CĂĄssio Farias Machado
CĂĄssio Farias Machado - avatar
0
it is a two dimensional array where subscripts [][] denoting rows and columns so [0][2] means 0 row's 2 element something like [0]=[0][1][2] here third one that is two is your element
30th Aug 2016, 2:05 AM
sachin tomar
sachin tomar - avatar
0
I understand except idk where 42 came from
30th Aug 2016, 2:17 AM
mich le'
mich le' - avatar
0
42 is its value and 2 as its index
30th Aug 2016, 3:05 AM
Aquarius
Aquarius - avatar
0
Two indexes [] [] indicate multidimensional arrays
30th Aug 2016, 10:13 PM
July Manana
July Manana - avatar
0
int res=0; f o r (int el : arr) res + = e l
3rd Sep 2016, 7:40 PM
HĂŒseyin TASKIN
HĂŒseyin TASKIN - avatar
0
Can someone help me i dont understand [1][0]
7th Sep 2016, 9:09 AM
Francesco Kelvin
Francesco Kelvin - avatar