C++ Pointers & Functions Question: Download C++ Pointers & Functions PDF

What is void pointer using C++?

Tweet Share WhatsApp

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 PDF Read All 32 C++ Pointers & Functions Questions
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?