Hey, I am wondering how void pointers is applied in the real world in terms of making a software more secure, more flexible.
For example, I know that void pointers, what pointer it will cast to is hidden to outside, which will make a software more secure.
Are there other reasons why you would use void pointers?
Hey, I am wondering how void pointers is applied in the real world in
Share
Void pointers don’t make the software any more secure.
The reason to use void* in c is a form of polymorphism – if you don’t know what type the data will be you can pass a void*
In C++ there is less need to use void* and the language prevents some of the C uses