Uninitialized Variables Flashcards

1
Q

Uninitialized variables

A

Variable that has not been given a known value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Undefined behaviour

A

Result of executing code whose behaviour is not defined by c++

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly