Disadvantages of Void Pointer
1. Type Safety: Due to the absence of type information in the void pointers there is always a probability of type casting or dereferencing and hence causes a run time error.
2. Debugging: Debugging code that involves the use of pointers to the void type can be rather complicated to perform because, among other things, there is no type information associated with void pointers.
3. Readability: Using void pointers means that sometimes a programmer has to declare them in certain ways, and it makes the code less clear and harder to understand.
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.