+ 1

What does the nullptr refer to?

nullptr

4th Apr 2017, 12:50 PM
imi
2 Answers
+ 2
It's a null pointer. Null pointers don't refer to anything.
4th Apr 2017, 12:58 PM
DaemonThread
DaemonThread - avatar
0
Pointers are sensitive to use. therefore if we declare a ptr which is not pointing to any location. it is recommended to initialise it with null. so that a null ptr. would become safe and a ptr. not pointing to any legal location.
4th Apr 2017, 12:57 PM
GeekyShacklebolt
GeekyShacklebolt - avatar