Void Pointer in C/C++

A void pointer or generic pointer is a special pointer that can point to objects of any datatype. It is declared just like a normal pointer by using void keyword at the time of declaration.

void *p;

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Blog at WordPress.com.

Up ↑

Design a site like this with WordPress.com
Get started