填空题

请在以下程序第一行的下划线处填写适当内容,使程序能正常运行。
#include <stdio.h>
【16】 (double,double);
main()
double x,y;
scanf("%If%If",&x,&y);
printf("%If\n",max(x,y));
double max(double a,double b)
return(a>b a:b);

【参考答案】

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

填空题
执行以下程序后,输出“#”的个数是 【13】 。 #include <stdio.h> main() int i,j; for(i=1;i<5;i++) for(j=2;j<=i;j++) putchar(’#’);
填空题
以下程序运行后,若输入:3,abcde <回车>,则输出结果是 【11】 。 #include <stdio.h> #include <string.h> move(char *str,int n) char temp; int i; temp=str[n-1]; for(i=n-1;i>0;i--) str[i]=str[i-1]; str[0]=temp; main() char s[50]; int n,i,z; scanf( %d,%s ,&n,s); z=strlen(s); for(i=1;i<=n;i++) move(s,z); printf( %s n ,s);
相关试题
  • 以下程序运行后的输出结果是 【18】 。...
  • 以下程序运行后的输出结果是 【19】 。...
  • 以下程序运行后的输出结果是 【20】 。...
  • 以下程序运行后的输出结果是 【12】 。...
  • 以下程序的功能是调用函数fun计算:m=1-...