+ 7

How does it work? Describe plz..

int[][]my arr={ {1,2,3},{4},{5,6,7} }; my arr[0][2]=42; int x=my arr [1][0]; >>>> >>> answer is: 4... .....

28th Sep 2017, 12:42 PM
zahid hasan sehab
zahid hasan sehab - avatar
1 Respuesta
+ 17
third element of first subarray is converted to 42 and x is assigned with the first element of second subarray (of array myarr)
28th Sep 2017, 1:36 PM
Valen.H. ~
Valen.H. ~ - avatar