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
- Which of the following technique is used for Clipping?
- Match List I with List II
- Match List I with List II
- Only legal pointer operations: → A. pointer + number pointer → B. pointer - number number → C. pointer + pointer pointer → D. pointer - poi…
- Consider the conditional statement if (m == 20 − 10 || n > 10). The order of execution of the following operations is: A. == B. − C. || D. >
- Arrange the 2-D viewing transformation pipeline. A. Convert world-coordinates to viewing coordinates B. Map viewing coordinates to normaliz…