小编Abo*_*msi的帖子

声明时可以使用变量吗?

为什么以下编译没有错误?:

int main()
{
    int x = x;  //I thought this should cause an error
    return 0;
}
Run Code Online (Sandbox Code Playgroud)

标准中的哪个部分解释了为什么允许这样做?

c c++ variables undefined-behavior language-lawyer

5
推荐指数
1
解决办法
141
查看次数

标签 统计

c ×1

c++ ×1

language-lawyer ×1

undefined-behavior ×1

variables ×1