Computer Science, asked by joseannmaria366, 3 months ago

Consider the statement int NUM=25 ; State the L value , R value and variable name if the allocated

memory address is from1005 to 1008​

Answers

Answered by presentmoment
0
  • L value - 1005
  • R-value - 25
  • Variable name - NUM

Explanation:  

R-value: R-value is the variable value, which is stored at some address in the memory. R-value should always be at the right hand of the assignment(=) operator. So, 25 is the variable value stored in the variable num.

L-value: L-value is the memory location for identifying the value/object. L-value can either be on the left side or right-hand side. Therefore, L-value represents the identifier. Hence, the value 25 is at the memory location 1005.

A Variable name is a unique name for identifying the objects/values. It can have letters, digits.

Similar questions