若有以下结构体定义,则是正确的引用或定义。struct example{ int x; int y;}v1;
A.example.x=10
B.examplev2.x=10
C.struct v2;v2.x=10
D.struct example v2={10};
第1题:
若有以下结构体,则正确的定义或引用是( )。 struct Test { int x; int y; }v1;
A.Test.x=10;
B.Test v2;v2.x=10;
C.struct Test v2;v2.x=10;
D.struct Test.v2=10;
第2题:
若有以下结构体定义,则是正确的引用或定义。 Struct example { int x; int y; }V1;
A.example.x=10
B.example V2.x=10
C.structv2;v2x=10
D.struct examplev2={10};
第3题:
若有定义:int x=3,y=2;float a=2.5,b=3.5;则表达式(x+y)%2+(int)a/(int)b的值为
第4题:
若有以下语句:typedef struct S{int 9;char h;}T;以下叙述中正确的是( )。
A.可用s定义结构体变量
B.可用T定义结构体变量
C.S是struct类型的变量
D.T是struct S类型的变量
第5题:
若有定义:floatx=3.5,y=3.6;则表达式()的值为6。
A.(int)x+(int)y
B.x+y
C.(int)(x+y)
D.int(x+y)