- What is a variable in C++?
A named object
- What is Definition of a variable?
A variable is a declaration statement used to create a variable.
- What is Instantiation of a variable?
Means the object will be created and assigned a memory address
- What is the difference between an l-value and an r-value?
l-value is an object reference whereas r-value is a value.
- What is an uninitialized variable and what kind of behaviour can you expect from such a variable?
An uninitialized variable is a variable that has not been given a value by the program (generally through initialization or assignment). Using the value stored in an uninitialized variable will result in undefined behavior.
- What is undefined behaviour?
Undefined behaviour occurs when a program does something the result of which is not specified by the standard.