鉴于:
int i, j = 1;
Run Code Online (Sandbox Code Playgroud)
是i定义的价值?如果是这样,它是什么?
我怀疑这是重复的,但搜索有点困难 - 如果有人能找到它让我知道.
bob*_*bah 14
例如:
#include <iostream>
int a, b=1; // a=0, b=1
int main(void) {
int p, q=1; // p=undef, q=1
return 0;
}
Run Code Online (Sandbox Code Playgroud)
局部变量的证明:
#include <iostream>
int main(void) {
{
int x = 99; // change stack where a would be
}
int a, b=0;
std::cout << a << std::endl;
return 0;
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
6150 次 |
| 最近记录: |