皮皮学,免费搜题
登录
搜题
【单选题】
下列给定函数Creatlink的功能是:创建带头结点的单向,并为各结点数据0到m-1的值。 ”/********found*****/”之后所指的语句有错,请选择下列正确的语句替换。 #include #include typedef struct aa { int data; struct aa *next; } NODE; NODE *Creatlink(int n, int m) { NODE *h=NULL, *p, *s; int i; /**********found***********/ p=(NODE )malloc(sizeof(NODE)); h=p; p->next=NULL; for(i=1; i<=n; i++) { s=(NODE *)malloc(sizeof(NODE)); s->data=rand()%m; s->next=p->next; p->next=s; p=p->next; } return h; } outlink(NODE *h) { NODE *p; p=h->next; printf("\n\nTHE LIST :\n\n HEAD "); while(p) { printf("->%d ",p->data); p=p->next; } printf("\n"); } main() { NODE *head; head=Creatlink(8,22); outlink(head); }
A.
p=malloc(sizeof(NODE));
B.
p=(void *)malloc(sizeof(NODE));
C.
p-=(NODE )malloc(sizeof(NODE));
D.
p=(NODE *)malloc(sizeof(NODE));
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
.
..
皮皮学刷刷变学霸
举一反三
【单选题】微小病变型肾病综合征最主要的治疗是
A.
正常量优质蛋白低盐饮食
B.
卧床休息
C.
糖皮质激素
D.
利尿
E.
非激素类免疫抑制剂
【多选题】32304中性粒细胞墨汁吞噬功能增强的疾病有
A.
急性单核细胞白血病
B.
急性淋巴细胞白血病
C.
急性粒细胞白血病
D.
急性粒-单核细胞性白血病
E.
慢性粒细胞白血病
【判断题】在德国,《基本法》只赋予联邦政府在文化方面有限的管辖权,因此大多数的文化机构都由各州和城镇自行管理。
A.
正确
B.
错误
【单选题】Consider the map【图片】. The smaller fixed point is ____, and the bigger one is ____.
A.
stable, stable
B.
stable, unstable
C.
unstable, stable
D.
unstable, unstable
【简答题】阅读理解。 Teacher: Whose clothes are they? Look, here's a blue T-shirt. Is this yours, Li Mei? Li Mei:  No, it's not mine. I think it's Jim's. Jim: Yes, it's mine, Mr. Wang. Teacher: Here you are, Jim. No...
【简答题】Consider a system with 40-bit virtual addresses, 36-bit physical addresses, and KiB (【图片】bytes) pages. The system uses a page map to translate virtual addresses to physical addresses; each page map...
【单选题】微小病变型肾病综合征最主要的治疗是()
A.
卧床休息
B.
高蛋白低盐饮食
C.
糖皮质激素
D.
利尿剂
E.
非激素类免疫抑制剂
【单选题】微小病变型肾病综合征最主要的治疗是( )
A.
正常量优质蛋白低盐饮食
B.
卧床休息
C.
糖皮质激素
D.
利尿剂
E.
非激素类免疫抑制剂
【简答题】( Han Mei is our monitor. She’s talking to Li Ming.) Han Mei = H   Li Ming = L L: Hi, Han Mei, you look unhappy. 小题1:____________? H: I am going to the hospital. Our English teacher Mrs. Gao is ill an...
【判断题】“六法”的第一法是“骨法用笔”。
A.
正确
B.
错误
相关题目: