Because const modifies a read-only variable, an initial value must be assigned when defining it. This initial value is usually a literal. The compiler will put this literal into the read-only data segment, so the variable does not need to be used during the compilation phase. Storage space, just note it in the symbol table
Usually
The compiler compiles directly into
instead of
Because const modifies a read-only variable, an initial value must be assigned when defining it. This initial value is usually a literal. The compiler will put this literal into the read-only data segment, so the variable does not need to be used during the compilation phase. Storage space, just note it in the symbol table