定义以下结构体类型struct student {char name[10];int score[50];float average; }stud1;则stud1占用内存的字节数是()
114
举一反三
- 定义以下结构体类型 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;
- 在如下结构体定义中,不正确的是○。 A: struct student { int no; char name[10]; float score; } B: struct stud[20] { int no; char name[10]; float score; } C: struct student { int no; char name[10]; float score; }stud[20]; D: struct{int no;char name[10];float score;}stud[100];
- 定义以下结构体类型struct student{char name[10...;则stud1占用内存的字节数是()。
- 中国大学MOOC: 4.定义以下结构体类型struct student{char name[10];int score[50];float average;}stud1;则stud1占用内存的字节数是( )。(设整型变量占4个字节)
内容
- 0
4.定义以下结构体类型struct student{char name[10];int score[50];float average;}stud1;则stud1占用内存的字节数是( )。(设整型变量占4个字节) A: 64 B: 114 C: 214 D: 7
- 1
定义以下结构体类型struct student{char name[10];float score[50];double average;}stud1;则stud1占用内存的字节数是( )。 A: 218 B: 64 C: 7 D: 228
- 2
4.定义以下结构体类型struct student{char name[10];int score[50];float average;}stud1;则stud1占用内存的字节数是( )。(设整型变量占4个字节) A: A.64 B: B) 114 C: C) 214 D: D) 7
- 3
设有以下结构类型说明和变量定义,char占1字节,int占2字节,double占8字节,则变量a在内存所占字节数是【1】 struct stud{char num[6];int s[4]; double ave; } a;
- 4
已知: Struct st{ Int num; Char sex; Float score; }stud,*p=&stud; 则对于结构体变量stud的成员num正确的引用是_________。