KwickClips Cyber Safety and Ethics · 40 sec · free
Can a const change later?
Short answer. No. It gives a compile error.
What does runs + SIX print?
54.
Remember
| Variable: value can change |
| const: value is fixed |
Can you change a const value later? No. Runs is a variable, so it can change. Six is a const, so it is fixed. Changing it gives a compile error. This prints fifty four. A variable can change. A const stays fixed.
This clip is from the full lesson: C++ Tokens, Data Types, Variables and Operators — 8 minutes, with the tables, the quick answers and the whole lesson in text.
Useful for: NIOS Senior Secondary Computer Science (330), Programming All levels C++, Programming All levels C++, Programming All levels C++
More KwickClips from this lesson
Voice-over is AI-generated; the script is written and checked by Kajal Ma'am. Confirm anything you plan around against your official board document. We never ask for a password or an OTP.




