Correction | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Correction

When it says my Arr[0][2] = 42 it is incorrect. It should be myArr[0][2] = 3

28th Jun 2017, 12:31 AM
Armaan Patel
Armaan Patel - avatar
4 Answers
+ 5
where is the full question
28th Jun 2017, 12:32 AM
RZK 022
RZK 022 - avatar
+ 4
No, the code is NOT telling you that myArr[0][2] is equal to 42. It's just assigning myArr[0][2] to the value of 42. There's nothing wrong there. The tutorial is simply showing you that you can assign the values of the multi-dimensional array individually.
28th Jun 2017, 5:54 AM
Rrestoring faith
Rrestoring faith - avatar
+ 3
if I suppose the question is arr[][]={{1,2,3,4},{1,2,3,4}}; here we will say that 1st part is 0 and second is 1 so 0 and 1 both have more sub parts like 0 has 0,1,2 and three which are 1,2,3,4 respectively So here is what we will conclude arr[0][2]= 3 hope this helps you.
28th Jun 2017, 12:37 AM
RZK 022
RZK 022 - avatar
+ 2
You should probably send this as feedback (from the app's menu)
28th Jun 2017, 1:18 AM
Kirk Schafer
Kirk Schafer - avatar