Q10. What is a variable? How many values are associated with it?
Ans. A variable is a named storage location that can hold any data value. A variable has two associated values:
- rvalue which is its data value that is, its contents.
- lvalue which is its location value that is, memory address.