Const Qualifier
摘要
To make the object a read-only object, we apply the const qualifier to its declaration. Once initialized, these objects become read-only, and we call them constants. Attempting to change their values results in a compile-time error. Let us write an example that defines a few simple constants: