江苏省计算机等级考试试题库系统
{printf(\, _________(28)_______);
P=P->next;}
prinff(\; }
struct node *fun(struct node *h) { struct node *pl,*p2,*p3; pl=h;p2=pl->next; while(p2) { if(p2->x%2) {p3=p2;
pl->next=_______(29)_________ ; p2=pl->next: p3->next=h;
________(30)___________; } else
{pl=p2:p2=p2->next;} } retnm h; } main()
{struct node a[N]={{4},{3},{2},,;
{1}}*head=a江苏省计算机等级考试试题库系统
int i,num;
for(i=0;i head=fun(head);print(head); } 参考答案 一、选择题 1.D 2.D 3.B 4.A 5.D 6.A 7.A 8.C 9.B 10.B 11.B 12.C 13.B 14.C 15.B 16.D 17.A 18.B 19.D 20.B 21.C 22.A 23.D 24.C 25.B 26.B 27.A 28.D 29.B 30?C, 二、填空题 (1)5 (2)mind (3)pow(x,y)或pow(10,5) (4)FILE *zx; (5)Odd (6)30 (7)2 6 (8)135 (9)1 5 3 (lO)3 9 7 (11)2 1 1 (12)3 2 1 (13)5 3 2 (14)BASIC (15)C (16)6 (17)1 2 3 (18)6 5 4 (19)k (20)a[2]==0或!a[2] (21)xO=x (22)x0-f/fl或x0-F(x0)/Fl(xO) (23)COUNT st[]或COUNT *st (24)i 江苏省计算机等级考试试题库系统 (25)st[j].count++ (26)strcpy(st[k].name,x[i]) (27)P (28)P->x (29)p2->next或p3->next (30)h=p3