Language - (Variable) Constant

> Code - (Programming|Computer) Language > Code - Grammar / Syntax (Lexical)

Table of Contents

1 - About

Constants are values that are fixed at compile time.

They are variables that centralize value setting (configuration).

A variable with a value that does not change throughout the program.

If you tried to assign a different value to a constant after the first declaration, the program would reject the change.

Advertising