Computer Science, asked by syed230595, 10 months ago

What is an lvaue and rvalue and give some examples?

Answers

Answered by PriyanshuBist2005
1

Answer:

lvalue and rvalue in C. ... For example, An assignment expects an lvalue as its left operand, so the following is valid: int i = 10; But this is not: int i; 10 = i; This is because i has an address in memory and is a lvalue. While 10 doesn't have an identifiable memory location and hence is an rvalue.

I HOPE IT HELPS.

Answered by Anonymous
1

lvalue and rvalue in C.

For example, An assignment expects an lvalue as its left operand, so the following is valid: int i = 10; But this is not: int i; 10 = i; This is because i has an address in memory and is a lvalue. While 10 doesn't have an identifiable memory location and hence is an rvalue.

I HOPE IT IS HELPFUL TO YOU

HAVE A GOOD DAY DUDE ✌

Similar questions