conditional operator problem in c

Newbie Member
2Jun2008,12:39   #1
trash4ya's Avatar
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?