这种问题不要再百度上问好不好。去老师同学不是更快。主程序:printf(“max=%d”,max(a,b,c));被调动子程序:int max(int a,int b,int c){retuen (a>b?a:b)>c?(a>b?a:b):c;}