P
Patrick Kowalzick
Dear all,
sorry, I always forget this thing:
Is this foo:
int foo(int i)
{
++i;
return i-1;
}
the same like this foo:
int foo(int i)
{
return i++;
}
? As I am alway scared using the ++ operators in compact forms, I'd better
ask......
Thanks,
Patrick
****************************
Reply form:
[ ] both foos are identical in the functionality and well defined
[ ] keep your fingers away from "return i++"
[ ] keep your fingers away from "return ++i"
[ ] do not know
Please mark the correct answers. More than one answer might be correct.
sorry, I always forget this thing:
Is this foo:
int foo(int i)
{
++i;
return i-1;
}
the same like this foo:
int foo(int i)
{
return i++;
}
? As I am alway scared using the ++ operators in compact forms, I'd better
ask......
Thanks,
Patrick
****************************
Reply form:
[ ] both foos are identical in the functionality and well defined
[ ] keep your fingers away from "return i++"
[ ] keep your fingers away from "return ++i"
[ ] do not know
Please mark the correct answers. More than one answer might be correct.