0

help to understand this please

int[ ][ ] myArr = { {1, 2, 3}, {4}, {5, 6, 7} }; myArr[0][2] = 42; int x = myArr[1][0]; // 4 my Question is why, what and how is this true ? myArr[0][2] = 42;

26th May 2019, 12:29 PM
Hareth Hamzaoui
Hareth Hamzaoui - avatar
3 Answers
0
Why did the course did not explain this ? How could i know by my self that myArr[0][2] = 42 means overrides the previous value 3 and becomes 42 ? why is this course so bad and poor. can you please go throw your course again and do it better!
26th May 2019, 1:02 PM
Hareth Hamzaoui
Hareth Hamzaoui - avatar