单选题:以下定义结构变量的语句中,错误的是()。
以下定义结构变量的语句中,错误的是()。
@[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
@[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