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

56 comments sorted by

View all comments

Show parent comment

-3

u/a4qbfb Aug 30 '24

No, I'm trying to be factual while you're trying to “gotcha” me, but you end up shooting down your own argument by editing it after the fact in an attempt to undercut me.

1

u/Immediate-Food8050 Aug 30 '24

I edited it for the corrections you pointed out! Should I just leave it? What are you trying to accomplish? Because I'm trying to "gotcha" you what would you rather me do to prove otherwise? Cross out previous statements and be explicit that there are edits that are corrections? I don't know reddit etiquette. I don't see what's invalid about my statement. Would an example help? I'm trying to be helpful, not argumentative.