Why I can't dereference a null pointer? That is, why I can't read/write memory which address is simply 0?
Does the base pointer of my process have a different address? If yes, is there a way to obtain the lower memory adders available for the default heap of my process?
A null pointer is not a pointer to "memory [whose] address is simply 0". It's just a special pointer that doesn't point to anything valid.
The C language says that there are no requirements on the behaviour of a program that dereferences a null pointer.
Why can't I make a phone call to 00000 000 000
? I should be able to do this.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With