1.

When does the void pointer can be dereferenced?(a) when it doesn’t point to any value(b) when it cast to another type of object(c) using delete keyword(d) using shift keywordThis question was posed to me in exam.I would like to ask this question from Pointer to Void topic in division Types, Pointers, Arrays & Structures in C++ of C++

Answer»

Right ANSWER is (B) when it cast to another type of object

The best EXPLANATION: By casting the pointer to another data type, it can be dereferenced from the VOID pointer.



Discussion

No Comment Found

Related InterviewSolutions