Lvalue and Rvalue

Home Forums C Programming Lvalue and Rvalue

This topic contains 4 replies, has 2 voices, and was last updated by  LouanneT01 7 years, 8 months ago.

  • Author
    Posts
  • #2246

    LouanneT01
    Member

    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

    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
    Member

    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

    For an R-value violation you could do this:

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

  • #3651

    LouanneT01
    Member

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

You must be logged in to reply to this topic.

0 Shares
Share
+1
Tweet
Share
Stumble