0 votes
in C Plus Plus by
What is NULL pointer?

1 Answer

0 votes
by

NULL is used to indicate that the pointer doesn’t point to a valid location. Ideally, we should initialize pointers as NULL if we don’t know their value at the time of declaration. Also, we should make a pointer NULL when memory pointed by it is deallocated in the middle of a program.

Related questions

0 votes
asked Mar 17, 2020 in C Plus Plus by SakshiSharma
0 votes
asked Jan 12 in C Plus Plus by GeorgeBell
...