Const Variables and Debugging C++

Channel:
Subscribers:
2,650
Published on ● Video Link: https://www.youtube.com/watch?v=YRV9aXRInmU



Duration: 1:01:49
171 views
4


If you have a variable that shouldn't change, mark it as const. You should also use const to avoid having magic numbers in your code, to make your code more readable and maintainable, and to enable certain optimizations.

Bugs in C++ fall into three main categories:
1) Compile time bugs
2) Run time bugs
3) WTF bugs