0 c c++ pointers structure instance
struct xampl {
int x;
char y;
};
struct xampl InstaceOfxampl;
struct xampl *PointerToxampl;
struct xampl &new_struct;
Run Code Online (Sandbox Code Playgroud)
我们在第一种情况下创建一个简单的实例,在第二种情况下创建一个指向xampl结构的指针.但是第三个声明是什么意思呢?与代码中的其他两个相比,它的处理方式有何不同?