address of register variable in C and C++

前端 未结 8 1897
野趣味
野趣味 2021-01-06 03:00

I know the concept of register variable and it\'s use cases but there are few questions in my mind based on what I have tried.

  1. I cannot access the address

8条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-06 03:11

    You can't take the address of a register variable, because it's not stored in RAM.

提交回复
热议问题