C/C++ - const with Pointer or Reference
·556 words·3 mins
const with Normal Variables # Two ways to add const for normal variables:
const TYPE NAME = VALUE; // more common TYPE const NAME = VAULE; Both mean this variable cannot be assigned to another value.
For example,