3 ms·
> A NULL pointer dereference occurs when software attempts to access memory at address 0 (the NULL address) via a pointer set to NULL. There is nothing in the
by jisnsm 2y ago
> A NULL pointer dereference occurs when software attempts to access memory at address 0 (the NULL address) via a pointer set to NULL.
There is nothing in the standard that says that NULL must be 0.
- vardump 2y agoWhen's the last time you've seen a non zero NULL pointer? We don't code for things like PDP-11 or Honeywell mainframes all that often. https://c-faq.com/null/machexamp.html https://c-faq.com/null/machexamp.html