Is ((void *) -1) a valid address?

0xffffffff is technically a valid address in a 32 bit environment but on most operating systems (Certainly Linux/Windows) will be in the reserved kernel part of the address space. That means that in user mode processes it’s safe to use it as a error code since no user mode allocation function would return this as … Read more

Concept of void pointer in C programming

Is it possible to dereference the void pointer without type-casting in C programming language… No, void indicates the absence of type, it is not something you can dereference or assign to. is there is any way of generalizing a function which can receive pointer and store it in void pointer and by using that void … Read more