Advantages of Void Pointer
1. Generic Programming: Pointer types, specifically the void pointer type, allow for the creation of functions as well as data structures that are independent of any particular data type.
2. Interfacing with External Libraries: They are useful when dealing with libraries written in other programming languages or working with data of types that one is not developing the application .
3. Dynamic Memory Allocation: They are commonly implemented in dynamic memory allocation operations such as `malloc` and `realloc`.
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.