在C中声明结构的新实例

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结构的指针.但是第三个声明是什么意思呢?与代码中的其他两个相比,它的处理方式有何不同?

md5*_*md5 5

在C++中,struct xampl &new_struct声明一个引用(但是,它是无效的,因为必须初始化引用).在C中,这里没有任何意义.