网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)
单选题
以下scanf函数调用语句中对结构体变量成员的不正确引用的是()。  struct node{      char name[20];      int age;      int sex; }student[5],*p;  p=student;
A

scanf(“%s”,student[0].name);

B

scanf(“%d”,&student[0].age);

C

scanf(“%d”,&(p->sex));

D

scanf(“%d”,p->age);


参考答案

参考解析
解析: 暂无解析
更多 “单选题以下scanf函数调用语句中对结构体变量成员的不正确引用的是()。  struct node{      char name[20];      int age;      int sex; }student[5],*p;  p=student;A scanf(“%s”,student[0].name);B scanf(“%d”,student[0].age);C scanf(“%d”,(p-sex));D scanf(“%d”,p-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);

考题 有以下程序段typedef struct node { int data; struct node *next; } *NODE;NODE p;以下叙述正确的是A)p 是指向 struct node 结构变量的指针的指针B)NODE p ;语句出错C)p 是指向 struct node 结构变量的指针D)p 是 struct node 结构变量

考题 有以下程序段 typedef struct node { int data; struct node *next; } *NODE; NODE p; 以下叙述正确的是( )。A.p是指向struct node结构变量的指针的指针B.NODE p;语句出错C.p是指向struct node结构变量的指针D.p是struct node结构变量

考题 设有定义:struct person{ int ID;char name[12];}p;请将 scanf("%d", 【 1 2 】 ); 语句补充完整,使其能够为结构体变量 p 的成员 ID 正确读入数据。

考题 设有以下程序段:struct MP3{ char name[20];char color;float price;}std,*ptr;ptr=std:若要引用结构体变量std中的color成员,写法错误的是( )。A.std.colorB.ptr->colorC.std->colorD.(*ptr)color

考题 有以下说明和定义语句 struct student { int age;char num[8]; struct student stu[3]={{20,"200401"},{21,"200402"},{19,"200403"}}; struct student *p=stu;}; 以下选项中引用结构体变量成员的表达式错误的是A.(p++)->numB.p->numC.(*p).numD.stu[3].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);

考题 以下scanf函数调用语句中对结构体变量成员的引用不正确的是struct pupil{ char name[20];int ageint sex;} pup[5],*p;p=pup;A.scanf("%s",pup[0].name);B.scanf("%d",pup[0].age);C.scanf("%dT",(p-sex));D.scanf("%d",p-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);

考题 有以下结构体说明和变量的定义,且指针p指向变量a,指针q指向变量b。则不能把节点b连接到节点a 之后的语句是struct node{ char data;struct node*next;}a,b,*p= a,*q=b;A.a. next=q;B.p. next= b;C.p-next=b;D.(*p).next=q;

考题 以下定义的结构体类型拟包含两个成员,其中成员变量info用来存入整形数据;成员变量link是指向自身结构体的指针,请将定义补充完整。struct node{ int info;【19】link;};

考题 以下程序中函数fun的功能是:构成一个如图所示的带头结点的单词链表,在结点的数据域中放入了具有两个字符的字符串。函数disp的功能是显示输出该单链表中所有结点中的字符串。请填空完成函数disp。[*]include<stdio.h>typedef struct node /*链表结点结构*/{char sub[3];struct node *next;}Node;Node fun(char s) /*建立链表*/{ … }void disp(Node *h){ Node *

考题 有以下程序段: typedef struct NODE {int num; struct NODE *next; }OLD; 以下叙述中正确的是 ______。A.以上的说明形式非法B.NODE是一个结构体类型C.OLD是一一个结构体类型D.OLD是一个结构体变量

考题 设有定义:struct person{int ID;char name[12];}P;请将scanf(“%d”, 【 】);语句补充完整,使其能够为结构体变量P的成员ID正确读人数据。

考题 有以下程序段: typedef struct NODE {int num; struct NODE * next; }OLD; 以下叙述中正确的是( )。A.以上的说明形式非法B.NODE是一个结构体类型C.OLD是一个结构体类犁D.OLD是一个结构体变量

考题 有如下说明和定义语句: struct student { int age; char num{8};}; struct student stu[3]={{20,"200401"},{21,"200402"),{19,"200403"}}; struct student *p=stu; 以下选项中引用结构体变量成员的表达式错误的是( )。A.(p++)->numB.p->numC.(*p).numD.stu[3].age

考题 有以下说明和定义语句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

考题 若有以下语句:typedef struct S{int 9;char h;}T;以下叙述中正确的是( )。A.可用s定义结构体变量B.可用T定义结构体变量C.S是struct类型的变量D.T是struct S类型的变量

考题 有以下说明和定义语句:struct student{int age; char num[8] ;};struct student stu [3] = { { 20, "200401" } , {21, "200402" } , {19, "200403" } };stract student * p = stu;以下选项中引用结构体变量成员的表达错误的是( )。A.(p++) ->numB.p- >numC.( *p).numD.stu[3].age

考题 有以下结构体说明和变量的定义,且指针p指向变量a,指针q指向变量b,则不能把节点b连接到节点a之后的语句是( )。 struct node { char data; struct node *next; }a,b, *p=a,*q=b;A.a.next=q;B.p.next=b;C.p->next=bD.(*p).next=q;

考题 设有以下程序段: struct MP3 { char name[20]; char color; float price; }std,*ptr; ptr=std: 若要引用结构体变量std中的color成员,写法错误的是( )。A.std.colorB.ptr-colorC.std-colorD.(*ptr)color

考题 以下scanf函数调用语句中对结构体变量成员的不正确引用是 struct pupil { char name[20]; int age int sex; } pup[5],*p; p=pup;A.scanf("%s",pup[0].name);B.scanf("%d",pup[0].age);C.scanf("%dT",(p->sex));D.scanf("%d",p->age);

考题 以下scanf函数调用语句中对结构体变量成员的不正确引用的是()。  struct node{      char name[20];      int age;      int sex; }student[5],*p;  p=student; A、scanf(“%s”,student[0].name);B、scanf(“%d”,student[0].age);C、scanf(“%d”,(p-sex));D、scanf(“%d”,p-age);

考题 已知char a;使用scanf()函数输入一个字符给变量a,不正确的函数调用是()A、scanf(“%d”,a)B、scanf(“%lf”,a)C、scanf(“%c”,a)D、scanf(“%u”,a)

考题 下面正确的结构体定义格式是()A、struct结构体名{类型成员变量1;类型成员变量2;….类型成员变量n;};B、struct结构体名{类型成员变量1;类型成员变量2;….类型成员变量n;}C、struct{类型成员变量1;类型成员变量2;….类型成员变量n;}结构体名;D、struct{类型成员变量1;类型成员变量2;….类型成员变量n;}结构体名

考题 单选题若有以下程序: typedef struct S {int g;char h;}T; 以下叙述中正确的是(  )。A 可用S定义结构体变量B 可用T定义结构体变量C S是struct类型的变量D T是struct S类型的变量

考题 单选题已知char a;使用scanf()函数输入一个字符给变量a,不正确的函数调用是()A scanf(“%d”,a)B scanf(“%lf”,a)C scanf(“%c”,a)D scanf(“%u”,a)