what is L - value and R - Value of a variables
Answers
Answer:
What am L (or R) Value? They refer to on the left and right side of the assignment operator. The Lvalue (pronounced: L value) concept refers to the requirement that the operand on the left side of the assignment operator is modifiable, usually a variable
Explanation:
An L value is an expression that refers to such an object. The term lvalue originally referred to objects that appear on the left (hence the 'l') hand side of an expression. ... An rvalue is any expression that has a value, but cannot have a value assigned to it.
But where exactly is this rvalue stored? It's up to the compiler where to store a temporary; the standard only specifies its lifetime. Typically, it will be treated like an automatic variable, stored in registers or in the function's stack frame.
Hope it helps you!