Variables and how many values are associated.

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:

  1. rvalue which is its data value that is, its contents.
  2. lvalue which is its location value that is, memory address.

Leave a Reply

Your email address will not be published. Required fields are marked *

106 Views
%d bloggers like this: