What is null pointer in c++? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is null pointer in c++?

5th Aug 2017, 2:36 AM
Prajakta Dilip Jadhav
2 Answers
+ 6
It means the pointer points to nothing
5th Aug 2017, 2:48 AM
aklex
aklex - avatar
0
You can point somewhere with it again, but dereferencing it throws an exception as long as it points to null.
5th Aug 2017, 6:03 AM
Timon Paßlick