Can a 32-bit processor really address 2^32 memory locations?

前端 未结 4 1792
抹茶落季
抹茶落季 2021-01-12 03:29

I feel this might be a weird/stupid question, but here goes...

In the question Is NULL in C required/defined to be zero?, it has been established that the NULL

4条回答
  •  死守一世寂寞
    2021-01-12 04:06

    If a 32-bit processor can address 2^32 memory locations, that simply means that a C pointer on that architecture can refer to 2^32 - 1 locations plus NULL.

提交回复
热议问题