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

Which of the following statements about pointers in C are TRUE?
(A) Pointers can be used to access array elements
(B) Pointers can store the address of another pointer
(C) Pointers are automatically dereferenced in expressions
(D) Pointers cannot be used to access structure members
Choose the correct answer from the options given below:

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

Show answer & explanation

Correct answer: B. (A) and (B) Only

Explanation

Pointer arithmetic accesses array elements (A), and a pointer-to-pointer stores another pointer's address (B). Pointers are not dereferenced automatically (you must use * or ->), and they can access structure members via ->.

More Programming Languages and Computer Graphics questions