A.example.x=10
B.example v2.x=10
C.struct v2;v2.x=10
D.struct example v2={10};
[单选题]若有以下结构体定义,则______是正确的引用或定义。 struct example { int x; int y; }v1;A.example.x=10B.example v2.x=10C.example.x=10D.struct example v2={10};
[单选题]若有以下结构体定义,则_______是正确的引用或定义。 struct example { int x; int y; }v1;A.example.x=10B.example v2.x=10C.struct v2;v2.x=10D.struct example v2={10};
[单选题]若有以下结构体定义,则是正确的引用或定义。 Struct example { int x; int y; }V1;A.example.x=10B.example V2.x=10C.structv2;v2x=10D.struct examplev2={10};
[单选题]若有以下结构体,则正确的定义或引用的是struct Test{int x;int y;} vl;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; }v1;A.Test.x=10;B.Test v2;v2.x=10;C.struct Test v2;v2.x=10;D.struct Test.v2=10;
[单选题]若有结构体定义:struct stu {int 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;
[单选题]若有结构体定义:struct stu{int num;char sex;int age;}al,a2;则下列语句中错误的是( )。A.printf("%d,%C,%d",a1);B.a2.age=a1.age;C.a1.age++;D.a1.num=5;
[单选题]若有结构体定义: struct stu{int 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;
[单选题]若有以下定义 struct link { int data; struct link *next; } a,b,c,*p,*q; 且变量a和b之间已有如下图所示的链表结构:指针p指向变量a,q指向变量c。则能够把c插入到a和b之间并形成新的链表的语句组是A.a.next=C;c.next=b;B.p.next=q;q.next=p.next;C.p->next=&c;q->next=p->next;D.(*p).next=q;(*q).next=&b;
[单选题]若有以下定义:struct link{ int data;struct link *next;} a,b,c,*p,*q;且变量a和b之间已有如下图所示的链表结构:指针p指向变量a,q指向变量c。则能够把c插入到a和b 之间并形成新的链表的语句组是:A.a.next=c; c.next=b;B.p.next=q; q.next=p.next;C.p->next=&c; q->next=p->next;D.(*p).next=q; (*q).next=&b;