Aspire's Library

A Place for Latest Exam wise Questions, Videos, Previous Year Papers,
Study Stuff for MCA Examinations - NIMCET

Previous Year Question (PYQs)



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 expression
(D) Pointers cannot be used to access structure members

Choose the correct answer from the options given below :





Solution

(A) True — pointers can access array elements because arrays and pointers are closely related in C.

(B) True — a pointer can store the address of another pointer (pointer to pointer).

(C) False — pointers are not automatically dereferenced, we must use *.

(D) False — pointers can access structure members using ->.

Thus correct statements are A and B.


Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More


Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More

Ask Your Question or Put Your Review.

loading...