Search:
Forum
General C++ Programming
what is value function returns
what is value function returns
Mar 11, 2015 at 3:11pm UTC
glennpl
(32)
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 UTC
Aceix
(1118)
if the condition is met, the function returns a non-zero number(probably 1) otherwise zero.
Aceix.
Topic archived. No new replies allowed.
C++
Information
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs