gpt4 book ai didi

c++ - 寄存器变量地址

转载 作者:太空宇宙 更新时间:2023-11-04 02:15:15 26 4
gpt4 key购买 nike

<分区>

Possible Duplicate:
Address of register variable

我知道在 c 中不允许获取寄存器变量的地址。但是为什么这段代码是用 c++ 而不是 c 编译的。

int main()
{
register int a;
printf("%u\n",&a);
}

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com