Struct A的定义位于全局命名空间以及a1声明中,而a2声明位于块范围(在main()函数中)。另外,在gcc 5.4.0中,我得到了一个警告(warning: 'a2.A::x' is used uninitialized in this function [-Wuninitialized])和一个随机值我还做了其他更复杂的实验,将嵌套<
我从C#开始我的旅程,但我意识到,当涉及到变量的声明时,关于内存的一些基本信息存在一些问题。看看我是不是对的。location is still the same but value now kept there is 10;
public int x, y;现在我定义了一个名为Point的结构。结构不是