int main() { int a=45; int& re=a; cout << &a << endl; cout << &re << endl; return 0; } Output : 0x61ff18 0x61ff18 当我打印两个变量的地址相同时,是否意味着参考变量不会占用堆栈中的内存? 最佳答案 C ++中引用的address-of运算符为您提供了引用对象的地址-而不是引用变量本身的地址。通过C ++规范。因此,您看到相同的值。