top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is the significance of lvalue and rvalue ?

+2 votes
341 views
What is the significance of lvalue and rvalue ?
posted Nov 15, 2014 by Neeraj Mishra

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

An lvalue (locator value) represents an object that occupies some identifiable location in memory (i.e. has an address).

rvalues are defined by exclusion, by saying that every expression is either an lvalue or an rvalue. Therefore, from the above definition of lvalue, an rvalue is an expression that does not represent an object occupying some identifiable location in memory.

Reference:--
http://eli.thegreenplace.net/2011/12/15/understanding-lvalues-and-rvalues-in-c-and-c

answer Nov 16, 2014 by Prakash
Similar Questions
+1 vote

I have seen the pre-defined identifier __func__ in many code bases. I want to know, when it is used and benefits of using it ?

0 votes

Which is the best practice for variable declaration within the function ? Or is it vary from one language to other one ?

+1 vote

Are there any defined rules that should be considered while writing function definition ?

...