1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

conditional operator problem in c

Discussion in 'C' started by trash4ya, Jun 2, 2008.

  1. trash4ya

    trash4ya New Member

    Joined:
    Jun 2, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    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?
     

Share This Page