- What is a variable in C++?
A variable in C++ is an object, i.e. a piece of memory, with a name associated to it.
- What is Definition of a variable?
The Definition of a variable is a statement that when executed will trigger the Instantiation of said variable.
- What is Instantiation of a variable?
The Instantiation of a variable consists in setting aside a piece of memory associated to this variable.
- What is the difference between an l-value and an r-value?
A l-value is associated with a persistent memory address while a r-value isnât.
- 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 be given any value after being defined. The variable is associated to a piece of memory and its value is then whatever resides in that piece of memory.
- What is undefined behaviour?
An undefined behaviour is the result of executing a piece of code that has no defined behaviour in the language.