定义以下结构体类型struct student{char name[10...;则stud1占用内存的字节数是()。
举一反三
- 定义以下结构体类型struct student {char name[10];int score[50];float average; }stud1;则stud1占用内存的字节数是()
- 定义以下结构体类型 struct student {char name[10]; float score[50]; double average; }stud1; 则stud1占用内存的字节数是( )。
- 以下对结构体类型的变量定义中不正确的是 。 A: B: define STUD struct student STUD {long num; char name[20]; char sex; float score;}; STUD stud1,stud2; C: struct student {long num; char name[20]; char sex; float score; }stud1,stud2; D: struct {long num; char name[20]; char sex; float score; } stud1,stud2; E: struct {long num; char name[20]; char sex; float score; }student;struct student stud1,stud2;
- 中国大学MOOC: 4.定义以下结构体类型struct student{char name[10];int score[50];float average;}stud1;则stud1占用内存的字节数是( )。(设整型变量占4个字节)
- 定义以下结构体类型struct student{char name[10];float score[50];double average;}stud1;则stud1占用内存的字节数是( )。 A: 218 B: 64 C: 7 D: 228
