Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   need help! (http://www.go4expert.com/forums/need-help-t4414/)

ratheeshp 24May2007 16:52

need help!
 
Is it possible to write "return" function inside a conditional operator? If yes please inform me how is it possible.

shabbir 24May2007 17:37

Re: need help!
 
Code:

x>1?1:fx();
fx return type is an integer.

DaWei 24May2007 18:27

Re: need help!
 
If you mean return keyword instead of return function, then:
Code:

    if (error) return EOF;


All times are GMT +5.5. The time now is 20:55.