What is the Variables In C++ or any Programming language?

Variable represents named storage location, whose values can be manipulated during program run. variables are called symbolic variables because they are named.

There are two values associated with a symbolic variable:

Rvalue, its data value stored at some location in the memory.

Lvalue, its location value that is the address in the memory at which its data value is stored.

rvalue of A = 10

lvalue of A = 1052

rvalue of C = 25

lvalue of C = 1055

Showing rvalue and lvalue of a variable