A variable is a named location in memory. When we declare a variable in C++, the operating system allocates space for the variable and tells the program the address that it has set aside.