Uninitialized Variables Flashcards
1
Q
Uninitialized variables
A
Variable that has not been given a known value
2
Q
Undefined behaviour
A
Result of executing code whose behaviour is not defined by c++
3
Q
Some unidentified behaviour
A
- the program produces different result every time
- consistently produces the same incorrect result
- behaves inconsistently
- seems like it’s working but produces incorrect result
- crashes
- works on some compilers but not on others
- works until you change some unrelated code