Stack Exchange
Stack Overflow
Questions
Tags
Users
About
Stack Overflow
Public
Questions
Tags
Users
About
What's the difference between nullptr and literal '0' and NULL and '(void*)0' and '\0'
Asked
Feb 27 '22 at 15:35
Active
Feb 27 '22 at 15:37
Viewed
89 times
0
I need to know what're the differences between all of those literals:
'\0'
nullptr
NULL
0
(void*)0
c++
null
literals
nullptr
edited
Feb 27 '22 at 15:37
asked Feb 27 '22 at 15:35
1
@Scheff'sCat Yeah, sorry I will edit the question
–
Feb 27 '22 at 15:37
1
`'\0'` is the nul character literal while `0` is an integer literal.
–
Jason
Feb 27 '22 at 15:38
0 Answers
0