Home Forums C Programming Lvalue and Rvalue

Viewing 4 reply threads
  • Author
    Posts
    • #2246
      LouanneT01
      Participant

      plz anyone can tell me……how can we produce an error like lvalue and rvalue required.
      basically lvalue stands for left value and rvalue for right value.
      but i am unable to bring these errors in my programs….

    • #3648
      GWILouisaxwzkla
      Participant

      An L-value violation is easy , just put a constant on the left hand side of an equation:

      You need something that is assignable for a L-value. R-value violations are tougher , I’ll have to look into this…….

    • #3649
      LouanneT01
      Participant

      hello sir,
      so u have changed ur name from cman to dman…..
      actually i know about LVALUE concept,but i m still alien about RVALUE.
      please find it somewhere and reply…..

      also i have posted a problem for “program without header files”…please reply on that too.

      thanks for replying.
      napster14

    • #3650
      GWILouisaxwzkla
      Participant

      For an R-value violation you could do this:

      pretty sure that would constitute a R-value violation…….

    • #3651
      LouanneT01
      Participant

      thank you for both the answers…..
      i’ll try them.

Viewing 4 reply threads
  • The forum ‘C Programming’ is closed to new topics and replies.