what is value function returns

Mar 11, 2015 at 3:11pm
Im having problems determining what value a simple function returns
when the return value is return b<a. Its not a bool would have to return int value
what value would it return if b < a and what value if b > a?


int ascending (int a, int b)
{
return b < a;
}
Mar 11, 2015 at 3:28pm
if the condition is met, the function returns a non-zero number(probably 1) otherwise zero.

Aceix.
Topic archived. No new replies allowed.