+ 7

[SOLVED]Explain this output

I found this question in cpp challenge. I can't understand how answer is 3 Anyone explain pleasehttps://www.sololearn.com/post/109492/?ref=app

9th Jun 2019, 11:16 AM
🇮🇳Omkar🕉
🇮🇳Omkar🕉 - avatar
2 Respuestas
+ 12
This is a multi dimensional array as you know. But what you are cofused is about "0[1[arr]]" to understand this you need to know that : arr[i] = *(arr+i) = *(i+arr) = i[arr] In the question above 0[1[arr]]={(1,2),(3,5)}. Step1 : 1[arr] selects the second row of array. Step2 : 0[1[arr]] selects the first element of second row.
10th Jun 2019, 4:16 AM
Manoj
Manoj - avatar