C语言程序,编译没有错误,执行时出错。问题在哪?

日期:2016-05-21 16:37:23 人气:1

C语言程序,编译没有错误,执行时出错。问题在哪?

#include int max(int a,int b);int main(void) { int a,b,c; scanf("%d%d",&a,&b); c=max(a,b); printf("max is %d\n",c); return 0;}int max(int a,int b){ return a>b?a:b;} max函数未定义
    A+
热门评论