问题遇到的现象和发生背景
为什么这样写三个数求最大值的函数会出错
遇到的现象和发生背景,请写出第一个错误信息
用代码块功能插入代码,请勿粘贴截图。 不用代码块回答率下降 50%
int max3(int a, int b, int c)
{
int max;
max = a;
if (b > max)
max = b;
if (c > max)
max = c;
return max;
}
为什么这样写三个数求最大值的函数会出错
int max3(int a, int b, int c)
{
int max;
max = a;
if (b > max)
max = b;
if (c > max)
max = c;
return max;
}