Suppose the two dimensional array is declared as int arr[2][2] = {{1,2},{3,4}};
Suppose the two dimensional array is declared as int arr[2][2] = {{1,2},{3,4}};
Then which of the following will not give the output 4?
Show answerHide answer
Correct answer: (A) *(*arr + 1)
Explanation
*arr is arr[0], so *(*arr + 1) is arr[0][1] = 2, not 4. The other three expressions all mean arr[1][1] = 4.