Which of the following correctly accesses the element in the 2nd row and 3rd…

BEL Probationary Engineer 2025Modified — slightly modified from the official paper; see the solution

Which of the following correctly accesses the element in the 2nd row and 3rd column of a 2D array int arr[3][4]?

  1. A.

    *(*(arr + 1) + 2)

  2. B.

    *(arr[1][2])

  3. C.

    arr + 1 + 2

  4. D.

    *(arr + 2 + 3)

Attempted by 201 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…