WHAT IS NULL POINTER IN C?
Null pointer is a pointer which is pointing to nothing. Null pointer points to empty location in memory. Value of null pointer is 0. We can make a pointer to point to null as below.
int *p = NULL;char *p = NULL;
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Null pointer is a pointer which is pointing to nothing. Null pointer points to empty location in memory. Value of null pointer is 0. We can make a pointer to point to null as below.
int *p = NULL;
need an explanation for this answer? contact us directly to get an explanation for this answerchar *p = NULL;