Pointers – General Questions

6. What would be the equivalent pointer expression for referring the array element a[i][j][k][l]

A. ((((a+i)+j)+k)+l)
B. *(*(*(*(a+i)+j)+k)+l)
C. (((a+i)+j)+k+l)
D. ((a+i)+j+k+l)

Correct Answer: B. *(*(*(*(a+i)+j)+k)+l)

7. A pointer is

A. A keyword used to create variables
B. A variable that stores address of an instruction
C. A variable that stores address of other variable
D. All of the above

Correct Answer: C. A variable that stores address of other variable

8. The operator used to get value at address stored in a pointer variable is

A. *
B. &
C. &&
D. ||

Correct Answer: A. *

Leave A Comment?

five × 1 =