Sollicitatievraag bij C-DOT

Difference between void pointer and NULL pointer and application of void pointer

Antwoord op sollicitatievraag

Anoniem

1 mrt 2019

Conceptually, when a pointer has that null value it is not pointing anywhere. Void pointer is a specific pointer type - void * - a pointer that points to some data location in storage, which doesn't have any specific type. So, once again, null pointer is a value, while void pointer is a type.