双语词卡 · 常用度第 81 位

address (&x)

📍 查出这个变量盒子住在内存第几号房间

在变量名前加 `&` 即可拿到它的内存地址。

English

📍 Returns the memory address where a variable lives

Address-of operator in C++.

代码示例

cout << &x;
探索 100 张双语词卡 →