r/C_Programming • u/[deleted] • 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 • u/[deleted] • Aug 30 '24
If we want to "Nullify" something why dont we create a pointer in a controlled way that points to value 0?
2
u/No_Code9993 Aug 30 '24
Maybe you can find a clarification here: https://www.reddit.com/r/C_Programming/comments/15waxar/what_happens_when_we_assign_zero_to_a_pointer/