改成这个就可以了,原因是定义和声明的函数不一致
#include "stdio.h"
void max(int x,int y,int z);
main()
{
int i,j,k;
printf("i,j,k=");
scanf("%d%d%d",&i,&j,&k);
max(i,j,k);
return 0;
}
void max(int x,int y,int z)
{
int m;
m=x>y?x:y;
m=m>z?m:z;
printf("the max value of the there data is %d\n",m);
}
#include "stdio.h"
void max(int x,int y,int z);
main()
{
int i,j,k;
printf("i,j,k=");
scanf("%d%d%d",&i,&j,&k);
max(i,j,k);
return 0;
}
void max(int x,int y,int z)
{
int m;
m=x>y?x:y;
m=m>z?m:z;
printf("the max value of the there data is %d\n",m);
}