-->
当前位置:首页 > 题库

单选题:以下定义结构变量的语句中,错误的是()。

Luz5年前 (2021-05-10)题库2073
以下定义结构变量的语句中,错误的是()。
@[C](1)

A. ```
struct student{
int num;
char name[20];
} s;
```
B. ```
struct {
int num;
char name[20];
} s;
```
C. ```
struct student{
int num;
char name[20];
};
student s;
```
D. ```
struct student{
int num;
char name[20];
};
struct student s;
```



A.```
struct student{
int num;
char name[20];
} s;
```
B.```
struct {
int num;
char name[20];
} s;
```
C.```
struct student{
int num;
char name[20];
};
student s;
```
D.```
struct student{
int num;
char name[20];
};
struct student s;
```


答案:C