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.
Beginner
49 Lessons
2h
Certificate of Completion
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.
AI-POWERED
AI-POWERED
This course includes
This course includes
Course Overview
In this course, you will learn about the C++ keyword const and its behaviour under different usage conditions, including local, global and static contexts. This course will help you to understand const and its implications when you attempt to return pointers and references in C++. By the end of the course, you will have a solid grip on const and its usage in preventing any accidental change of data.
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
What You'll Learn
Use of const with variables
Show more
Course Content
Introduction
Arguments using const
Local Variables
Local Members
Functions
Return Types
7 Lessons
const Parameters
6 Lessons
const and Smart Pointers
4 Lessons
Rvalue References
7 Lessons
Summary
1 Lesson
Course Author
Trusted by 1.4 million developers working at companies
Anthony Walker
@_webarchitect_
Evan Dunbar
ML Engineer
Carlos Matias La Borde
Software Developer
Souvik Kundu
Front-end Developer
Vinay Krishnaiah
Software Developer
Eric Downs
Musician/Entrepeneur
Kenan Eyvazov
DevOps Engineer
Souvik Kundu
Front-end Developer
Eric Downs
Musician/Entrepeneur
Anthony Walker
@_webarchitect_
Evan Dunbar
ML Engineer
See how Educative uses AI to make your learning more immersive than ever before.