All mock tests are FREE till 31 December — register to save your progress

What would be the equivalent pointer expression for referring the array element ar[ m ][ n ][0]

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: D. *(*(*(ar+m)+n)+0)

Explanation

ar[i] is *(ar + i), applied once per dimension: ar[m][n][0] = *(*(*(ar + m) + n) + 0).

More Programming Languages and Computer Graphics questions