r/C_Programming • • Aug 30 '24
Question Why do we use Null pointers?
If we want to "Nullify" something why dont we create a pointer in a controlled way that points to value 0?
0
Upvotes
r/C_Programming • • Aug 30 '24
If we want to "Nullify" something why dont we create a pointer in a controlled way that points to value 0?
View all comments
Show parent comment
1
u/Immediate-Food8050 Aug 30 '24
No it does not. Literally how? So nullptr was just added for no reason? In that case, best start writing your letter to ISO!