need help!

ratheeshp's Avatar, Join Date: May 2007
Newbie Member
Is it possible to write "return" function inside a conditional operator? If yes please inform me how is it possible.
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Code:
x>1?1:fx();
fx return type is an integer.
0
DaWei's Avatar, Join Date: Dec 2006
Team Leader
If you mean return keyword instead of return function, then:
Code:
    if (error) return EOF;