填空题

请在以下程序第一行的下划线处填写适当内容,使程序能正确运行。
【16】 (double,double);
main()
double x,y;
seanf("%1f%1f",&x,&y);
pfintf("%1f\n",max(x,y));
double max(double a,double b)
return(a>ba:b) ;

【参考答案】

double max或extern double max
<上一题 目录 下一题>
热门 试题

填空题
已有定义如下: struct node int data; struct node *next; *P; 以下语句调用malloc函数,使指针p指向一个具有struct node类型的动态存储空间。 请填空。 p=(struct node *)malloc 【19】 ;
填空题
以下程序的功能是将字符串s中的数字字符放入d数组中,最后输出d中的字符串。例如,输入字符串: abcl23edf456gh,执行程序后输出:123456。请填空。 #include<stdio.h> #include<ctype,h> main() char s[80],d[80];int i,j; gets(s); for(i=j=0;s[i]!=’ 0’;i++) if( 【20】 )d[j]=s[i];j++; d[j]=’ 0’; puts(d) ;
相关试题
  • 有以下程序 main() int s=0,a=1...
  • 有以下程序 main() int a[3][3]...
  • 有以下程序 struct s int x,y;data[...
  • 以下选项中不能正确把c1定义成结构体变量的是
  • 有以下程序 main() int k=4,n=0...