Beginner
49 Lessons
2h
Certificate of Completion
Takeaway Skills
Use of const with variables
Effect of const on functions and return types
Const with parameters
Relation between const and smart pointers
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.
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
How You'll Learn
You don’t get better at swimming by watching others. Coding is no different. Practice as you learn with live code environments inside your browser.
Videos are holding you back. Educative‘s interactive, text-based lessons accelerate learning — no setup, downloads, or alt-tabbing required.
Learn faster and smarter with adaptive AI tools embedded in every Educative course.
Built-in assessments let you test your skills. Completion certificates let you show them off.