#include main() {int a=1,b=2,c;int max(int x,int y);//函数申明 c=max(a,b); printf("max is %d\n",c); } int max(int x,int y)//有返回值的 {int z; //定义的z z=(x>y)?x:y; return(z);}结果是max is 2
运行果果是:max is 2