有如下结构体说明,以下叙述中错误的是()。 struct stu { int a; float b; } stutype;
A.struct是结构体类型的关键字
B.struct stu是用户定义的结构体类型
C.stutype是用户定义的结构体类型名
D.a和b都是结构体成员名
第1题:
有以下说明和定义语句 struct student { int age;char num[8]; struct student stu[3]={{20,"200401"},{21,"200402"},{19,"200403"}}; struct student *p=stu;}; 以下选项中引用结构体变量成员的表达式错误的是
A.(p++)->num
B.p->num
C.(*p).num
D.stu[3].age
第2题:
以下对结构体类型变量的定义中,不正确的是______。
A.typedef struct aa { int n; float m; }AA; AA td1;
B.#define AA struct aa AA {int n; float m; }td1;
C.struct {int n; float m; }aa; srtuct aa td1:
D.struct {int n; float m; }tdl;
第3题:
有以下程序: #include <strino.h> struct STU {int num; float TotalScore; }; void f(struct STU p) {struct STU s[2]={{20044,550},{20045,537}}; p.num=s[1].num;p.TotalScore=s[1].TotalScore; } main() {struct STU s[2]={{20041,703},{20042,580}}; f(s[0]); printf("%d%3.0t\n",s[0].num,s[0].TotalScore); } 程序运行后的输出结果是 ______。
A.20045 537
B.20044 550
C.20042 580
D.20041 703
第4题:
以下对结构体类型变量的定义中,不正确的是( )
A.typedef struct aa { int n; float m; }AA; AA tdl;
B.#define AA struct aa AA{ int n; float m; }tdl;
C.struct { int n; float m; }aa; struct aa tdl;
D.struct { int n; float m, }tdl;
第5题:
设有以下C语言说明语句:
struct ex{int x;float y;char z;} example
则下面的叙述中不正确的是(52)。
A.struct是结构体类型的关键字
B.x、y、z都是结构体成员名
C.struet ex是结构体类型
D.example是结构体类型名
第6题:
有如下说明和定义语句: struct student { int age; char num{8};}; struct student stu[3]={{20,"200401"},{21,"200402"),{19,"200403"}}; struct student *p=stu; 以下选项中引用结构体变量成员的表达式错误的是( )。
A.(p++)->num
B.p->num
C.(*p).num
D.stu[3].age
第7题:
有以下说明和定义语句struct student{ int age; char num[8];};struct student stu[3]={{20,"200401"},{21,"200402"},{10\9,"200403"}};struct student *p=stu;以下选项中引用结构体变量成员的表达式错误的是A.(p++)->num B.p->num C.(*p).num D.stu[3].age
第8题:
有以下说明和定义语句:struct student{int age; char num[8] ;};struct student stu [3] = { { 20, "200401" } , {21, "200402" } , {19, "200403" } };stract student * p = stu;以下选项中引用结构体变量成员的表达错误的是( )。
A.(p++) ->num
B.p- >num
C.( *p).num
D.stu[3].age
第9题:
以下对结构体类型变量td的定义中,错误的是
A.typedef struct aa { int n; float m; }AA; AA td;
B.stmct aa{ int n;float m;}td;stmct aa td;
C.struct { int n; float m; }aa; struct aa rd;
D.struct{ int n;float m;}td;
第10题:
设有以下声明语句 struct ex { int x;float y;char z;}example; 则下面的叙述中不正确的是______。
A.struct是结构体类型的关键字
B.example是结构体类型名
C.x,y,z都是结构体成员名
D.struct ex是结构体类型
第11题:
下列语句段中,正确的是( )。
A.struct { int x; float y; int a[2]; unsigned b[3]; char name[ 10]; };
B.struct stu { unsigned a[3]; unsigned b[4]; }x; int *p=& x.a;
C.street stu { int a; float x[4]; }y={1,1.0}; float data=y.x;
D.struct nd {int a,b; unsigned c[2]=5; };
第12题:
以下对结构体类型变量td的定义中,错误的是( )。
A.typedef struct aa { int n; float m; }AA; AA td;
B.struct aa { int n; float m; }td; stmct aa td;
C.stmct { int n; float m; }aa; stmct aa td;
D.struct { int n; float m; }td;
第13题:
设有以下说明语句 struct num { int a; float b; }numl;则下面的叙述不正确的是______。
A.struct是结构体类型的关键字
B.struct num是用户定义的结构体类型
C.numl是用户定义的结构体类型名
D.a和b都是结构体成员名
第14题:
若某C语句如下: struct ex {int x;float y;char z;}example; 则以下叙述中不正确的是(29)。
A.struct结构体类型的关键字
B.x,y,z都是结构体成员名
C.stmct ex是结构体类型
D.example是结构体类型名
第15题:
有以下程序#include "stdio.h"main(){ struct date { int number; float fenzhi; char name; }stu; printf("%d\n",sizeof(stu));} 程序的运行结果是A.3 B.5C.7 D.8
第16题:
以下对结构体类型变量td的定义中,错误的是 ______。
A.typedef struct aa
B.struct aa {int n; {int n; float m; float m; }AA; }td; AAtd; struct aa td;
C.struct
D.struct {int n; {int n; float m; float m; }aa; }td; struct aa td;
第17题:
设有以下说明语句: struct stu { int a; float b; }stutype; 则下面叙述不正确的是( )。
A.struct是结构体类型的关键字
B.structstu是用户定义的结构体类型
C.stutype是用户定义的结构体类型名
D.a和b都是结构体成员名
第18题:
以下对结构体类型变量的定义中,不正确的是_______。
A.typedef struct aa { int n; float m; }aa; aa td1;
B.#define aa struct aa aa{ int n; float m; }td1;
C.struct { int n; float m; }aa; struct aa td1;
D.struct { int n; float m; }td1;
第19题:
设有以下说明语句: struct ex {int x;float y;char z; }example;在下面的叙述中,不正确的一条是______。
A.struct是结构体类型的关键词
B.example是结构体类型名
C.x,y,2都是结构体成员名
D.struct ex是结构体类型
第20题:
设有以下声明语句 street ex { int x;float y;char z;} example; 则下面的叙述中不正确的是 ______ 。
A.struct是结构体类型的关键字
B.example是结构体类型名
C.x,y,z都是结构体成员名
D.struct ex是结构体类型
第21题:
下列语句段中,正确的是( )。
A.street { int x; float y; int a[2]; unsigned b[3]; char name[ 10]; };
B.struct stu { unsigned a[3]; unsigned b[4]; }x; int *p=& x.a;
C.stmct stu { int a; float x[4]; }y={1,1.0}; float data=y.x;
D.struct nd { int a,b; unsigned c[2]=5; };
第22题:
有以下程序 #include<iostream.h> struct STU { char num[10]; float score[3];}; void main( ) { struct STU s[3]={ { "20021",90,95,85 }, {"20022",95,80,75 }, {"20023",100,95,90 } },* p=s; int i; float sum=0; for(i=0;i<
A.260
B.270
C.280
D.285
第23题:
以下对结构体类型变量td的定义中,错误的是( )。
A.typcdef struct aa { int n; float m; } AA; AA td;
B.struct aa {int n; float m; } struct aa td;
C.struct {int n; float m; } aa; struct aa td;
D.struct {int n; float m; }td;
第24题:
有以下说明语句:struct Point{int x;int y;};则叙述正确的是()