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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice