Characteristics of Variables

Every variable has at least three characteristics.

When you define a variable in a C++ program, the compiler makes sure that the variable is allocated enough memory to hold a value of that type. Here's an example:

int a = 3;          // name->a, type->int, value->3
auto b = 3.14159;   // name->b, type->double, value->pi
cout << a << endl;  // print value
cout << b << endl;  // print value