Constant

From Free Pascal wiki
Revision as of 00:20, 19 September 2017 by FPC user (talk | contribs) (edit)

English (en) suomi (fi) français (fr) русский (ru) 中文(中国大陆)‎ (zh_CN)

A constant is a variable that does not change, it has a fixed value.

Constants are defined in the const section of a Free Pascal program. When a variable is constant the Free Pascal compiler can often do some optimizations to make the output code faster or smaller.

Some special Free Pascal constants:

Logical truth values

Empty pointer value

Mathematical values

read more