C语言填空题10?

来源:百度知道 编辑:UC知道 时间:2024/05/07 11:55:46
10.表示“整数x的绝对值大于5”时值为“真”的C语言表达式是 ____________
为什么要这么填?

int abs(int x)
if {
x>5;
return x;
}

int abs(int x)
{if x>5 then
return x
else
if x<(-5) then
return -x;

}

有没有搞错 人家问的是表达式 你写的是什么啊 结果就是 fabs(x)>5

int abs(int x)
{if x>5
return x ;
else
if x<(-5)
return -x;

}