What is a variable in C++?
- An allocated space in memory defined by the variable name.
What is a definition of a variable?
- A placeholder for a store of value (i.e. ‘X’).
What is instantiation of a variable?
- The creation of the spaceholder in memory specifically allocated for the variable.
What is the difference between an l-value and an r-value?
- L-values are left-side variables (memory spaces) which recieve the value computed by the r-values on the right-side (the value stored within the space allocated).
What is an uninitialized variable and what kind of behaviour can you expect from such a variable?
- Uninitialized variables may produce problems if the garbage that exists in the allocated variable space gets used as valid data.
What is undefined behaviour?
- Functionality that doesn’t exist or is not properly used such that the compilers will not understand.