更多"若有以下结构体定义,则______是正确的引用或定义。 stru"的相关试题:
[单项选择]若有以下结构体定义,则是正确的引用或定义。 Struct example { int x; int y; }V1;
A. examplx=10
B. example V2.x=10
C. structv2;v2x=10
D. struct examplev2={10};
[单项选择]若有以下结构体定义,则是正确的引用或定义。
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;
[单项选择]若有以下结构体定义,则是正确的引用或定义。struct example{ int x; int y;}v1;
A. examplx=10
B. examplev2.x=10
C. struct v2;v2.x=10
D. struct example v2={10};
[单项选择]若有以下结构体定义,则______是正确的引用或定义。 struct example { int x; int y; }v1;
A. examplx=10
B. example v2.x=10
C. examplx=10
D. struct example v2={10};
[单项选择]若有以下结构体定义,则_______是正确的引用或定义。
struct example
int x;
int y;
v1;
A. example.x=10
B. example v2.x=10
C. struct v2;v2.x=10
D. struct example v2=10;
[单项选择]若有以下结构体,则正确的定义或引用是
struct Test
int x;
int y:
v1;
A. Test.x=10;
B. Test v2;v2.x=10;
C. struct v2;v2.x=10;
D. struct Test v2=10;
[单项选择]若有以下结构体,则正确的定义或引用的是( )。
struct Test
int x;
int y;
vl;
A. Test.x=10;
B. Test v2;v2.x=10;
C. struet v2;v2.x=10;
D. struct Test v2=10;
[单项选择]若有以下结构体,则正确的定义或引用是( )。
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;
[单项选择]若有结构体定义:
struct stuint num;
char sex;
int age;
a1,a2;
则下列语句中错误的是( )。
A. printf("%d,%c,%d",a1);
B. a2.age=a1.age;
C. a1.age++;
D. a1.num=5;
[单项选择]以下对结构体类型变量的定义中,不正确的是
[单项选择]若有以下说明,则在seanf函数调用语句中对结构体变量成员引用方式不正确的是( ) struct pub {char name[20]; int age; int sex; }pub[5],*P;
A. scanf("%s",pup[0].nam;
B. scanf("%d",&pup[0].ag;
C. scanf("%d",&p->se;
D. scanf("%d",*ag;