Secure Coding Practices in C++: A Deep Dive into const
Gain insights into the C++ keyword 'const,' its usage in various contexts, and implications when returning pointers and references. Learn about preventing accidental data changes.
Sandor is a passionate software craftsman focusing on reducing the maintenance costs by developing, applying and enforcing clean code standards. His other core activity is knowledge sharing both oral and written, within and outside of his employer. When not reading or writing, he spends most of his free time with his two children and his wife baking at home or travelling to new places.
Join 3.1 million developers at
What You'll Learn
- Use of const with variables
- Effect of const on functions and return types
- Const with parameters
- Relation between const and smart pointers
Learning Roadmap
2.
Arguments using const
Arguments using const
3.
Local Variables
Local Variables
3 Lessons
3 Lessons
4.
Local Members
Local Members
8 Lessons
8 Lessons
5.
Functions
Functions
6 Lessons
6 Lessons
6.
Return Types
Return Types
7 Lessons
7 Lessons
7.
const Parameters
const Parameters
6 Lessons
6 Lessons
8.
const and Smart Pointers
const and Smart Pointers
4 Lessons
4 Lessons
9.
Rvalue References
Rvalue References
7 Lessons
7 Lessons
Sandor Dargo
Principal engineer. Author. Speaker. Happy father.
Trusted by 3.1 million developers working at companies
Anthony Walker
@_webarchitect_
Evan Dunbar
ML Engineer
Software Developer
Carlos Matias La Borde
Souvik Kundu
Front-end Developer
Vinay Krishnaiah
Software Developer
Built for 10x Developers











