C小测验-109 |问题1

在下面的程序片段中,s1和s2都是如下定义的结构类型的变量,不会有任何编译问题。

null

typedef struct Student
{
int rollno;
int total;
} Student;
Student s1;
struct Student s2;


(A) 符合事实的 (B) 错误的 答复: (A) 说明: 一开始,似乎使用相同的“struct tag name”和“typedef name”会在这里引发问题。但这对两个同名的人来说都很好。s1是使用typedef name Student定义的,而s2是使用struct tag name Student定义的。 这个问题的小测验

© 版权声明
THE END
喜欢就支持一下吧
点赞14 分享