Syntax of Void Pointer
void* ptr;
Here, ptr is a pointer whose type is void, and these two symbols represent ‘pointer to void’. The variable can refer to any data type as a memory location.
Void Pointer in Programming
Pointer is a way of manipulating addresses in computer memory by making referenced based on its original nature rather than by its value. Void Pointer is an object that is capable of pointing to the address of any other type of data. In this article, we will discuss about what is a void pointer, how it works, its syntax, advantages and disadvantages.