Google News
logo
C-Language - Interview Questions
What do you understand by rvalue and ivalue?
The expression on the left of the assignment operator (=) is called an ivalue. An rvalue is an expression on the right side of the assignment operator, and it is assigned to an ivalue.
 
For instance,
int a = 25; 
int a is the ivalue in the above-mentioned example while 25 is the rvalue. While an ivalue persists beyond a single expression, the rvalue doesn’t persist beyond the expression using it.
Advertisement