填空题
有以下说明定义和语句,可用a.day引用结构体成员day,写出引用结构体成员day的其他两种形式
【16】
、
【17】
。
struct int day;char mouth;int year;a,*b;b=&a;
【参考答案】
[16](*B) .dat
[17].b->day
点击查看答案
<上一题
目录
下一题>
热门
试题
填空题
以下程序实现带有头结点的单链表的建立,链表中每个结点包含数据域data(字符型)和指针域next,所建立链表的头指针由参数phd传回调用程序。在空格处填入正确内容。 # include<stdio.h> # include<stdlib, h> struct node char data; struct node * next; ; void creatlist( 【18】 ) char ch; struct node * s, * r; * phd= malloc( sizeof (struct node)); r= * phd; ch=getchar(); while(ch !=’@’) s = malloc(sizeof(struct node)); s->data=ch; r->next=s; r=s; ch= getchar(); ; r->next= 【19】 ; main ( ) struct node * head; head= NULL; creatlist( 【20】 )
点击查看答案
填空题
下面程序的功能是 【12】 。 double sub(double x,int y) int n; double z; for(n=1,z=x;n<y;n++) z=z* x; return z; main() double a=2.0,b=4.0,c; c=sub(a,b) ; printf( %f ,c) ;
点击查看答案
相关试题
以下函数把b字符串连到a字符串的后面,并返...