Dereferencing a null pointer

前端 未结 5 2019
时光说笑
时光说笑 2021-01-18 05:10

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 addr

5条回答
  •  独厮守ぢ
    2021-01-18 05:42

    A pointer having a value of NULL should be thought of as something that "points to nothing", instead of something that points to some memory address corresponding to 0.

提交回复
热议问题