C++ Pointers & Functions Question:

Download Job Interview Questions and Answers PDF

What is void pointer using C++?

C++ Pointers & Functions Interview Question
C++ Pointers & Functions Interview Question

Answer:

In C++, void represents the absence of type, so void pointers are pointers that point to a value that has no type. The void pointers can point to any data type.
We can declare void pointer as follows.
Void *p;.

Download C++ Pointers & Functions Interview Questions And Answers PDF

Previous QuestionNext Question
Explain what is NULL pointer and void pointer and what is their use?Tell me what happens when a pointer is deleted twice?