Dissimilarity between NULL and VOID pointers

What is the dissimilarity between NULL and VOID pointers?

E

Expert

Verified

The dissimilarity between NULL and VOID pointers is given below:

NULL:

It can be value for pointer type variables.

VOID:

It is a type identifier that has not size.

Both NULL and VOID are not similar. Illustration as: void* ptr = NULL;

   Related Questions in Data Structure & Algorithms

©TutorsGlobe All rights reserved 2022-2023.