Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   conditional operator problem in c (http://www.go4expert.com/forums/conditional-operator-c-t11002/)

trash4ya 2Jun2008 12:39

conditional operator problem in c
 
hi friends,

when i type
(a<20)?b:b=30; it doesn't give any error...
but
(a<20)?b:c=30; gives an lvalue error.

why?


All times are GMT +5.5. The time now is 15:03.