/* 返回值类型与函数类型不同 */
#include <stdio.h>
int main()
{
int max(float x, float y);
float a, b;
int c;
scanf_s("%f,%f",&a, &b);
c = max(a, b);
printf("Max is %d\n\n", c);
return 0;
}
int max(float x, float y)
{
float z;
z = x > y ? x : y;
return z;
}
第八章 例8.3
最新推荐文章于 2021-05-19 16:53:37 发布