C++ Pointers & Functions Question:
Download Job Interview Questions and Answers PDF
What is void pointer using C++?
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;.
We can declare void pointer as follows.
Void *p;.
Download C++ Pointers & Functions Interview Questions And Answers
PDF
Previous Question | Next Question |
Explain what is NULL pointer and void pointer and what is their use? | Tell me what happens when a pointer is deleted twice? |