J
jzhang918
Hi,
Should f(INT_MIN) return 0 according to the C99 for the following
function f (), or its result is undefined?
int f(int i)
{
i = i > 0 ? i : -i;
if (i<0)
return 0;
else
return 1;
}
Thanks!
Jie
Should f(INT_MIN) return 0 according to the C99 for the following
function f (), or its result is undefined?
int f(int i)
{
i = i > 0 ? i : -i;
if (i<0)
return 0;
else
return 1;
}
Thanks!
Jie