A.)typedef struct
{int n; char c;} REC;
REC t1,t2;
B.)struct REC;
{int n; char c;};
REC t1,t2;
C.)typedef struct REC ;
{int n=0; char c='A';} t1,t2
D.)struct
{int n;char c;}REC;
REC t1,t2;
[单选题]以下结构体类型说明和变量定义中正确的是( )。A.typedef structB.struct REC; {int n;char c;}REC; {int n;char c;}; REC t1,t2; REC t1,t2;C.typedef struct REC;D.struct {int n=0;char c='A';}t1,t2; {int n;char c;}REC; REC t1,t2;
[单选题]以下结构体类型说明和变量定义中正确的是( )。
[单选题]以下结构体类型说明和变量定义中正确的是( )。A.B.C.D.
[单选题]以下结构体类型说明和变量定义中正确的是( )。A.B.C.D.
[单选题]有以下结构体说明和变量定义,如图所示: struct node {int data;struct node *next;} *p,*q,*r,现妥将q所指结点从链表中删除,同时要保持链表的连续,以下不能完成指定操作的语句是______。A.P->next=q->next;B.p->next=(p->next->next;C.p->next=rD.p=q->next;
[单选题]下列结构体类型说明和变量定义中正确的是( )。A.typedef struct {int n; char c;}REC; REC t1,t2;B.struct REC; {int n; char c;}; REC t1,t2;C.typedef struct REC; { int n=0; char c='A';} t1,t2;D.stmct { int n; char c;} REC; REC t1,t2;
[单选题]有以下结构体说明、变量定义和赋值语句struct STD{ char name[10];int age;char sex;} s[5],*ps;ps=&s[0];则以下 scanf 函数调用语句中错误引用结构体变量成员的是A.)scanf("%s",s[0].name);B.)scanf("%d",&s[0].age);C.)scanf("%c",&(ps->sex));D.)scanf("%d",ps->age);
[单选题]有以下结构体说明、变量定义和赋值语句 struct STD { char name[10]; int age; char sex; }s[5],*ps; ps=&s[0]; 则以下scanf函数调用语句中错误引用结构体变量成员的是______。A.scanf("%s",s[0].name);B.scanf("%d",&s[0].age);C.scanf("%c",&(ps->sex));D.scanf("%d",ps->age);
[单选题]有以下结构体说明,变量定义和赋值语句: struct STD {char name[10]; int age; char ***; }s[5],*ps; ps=&s[0]; 则以下scanf函数调用语句中错误的结构体变量成员是( )。A.scanf("%s",s[0].name);B.scanf("%d",&s[0].age);C.scanf("%c",&(ps->***));D.scanf("%d",ps->age);
[单选题]有以下结构体说明、变量定义和赋值语句 struct STD { char name[10]; int age; char sex; }s[5],*ps; ps=&s[0]; 则以下scanf函数调用语句中错误引用结构体变量成员的是______。A.scanf("%s",s[0].name);B.scanf("%d",&s[0].age);C.scanf("%c",&(ps->sex));D.scanf("%d",ps->age);