


The example declares and uses constants and variables of the character type Char, WideChar, AnsiChar. AnsiChar – a type that defines character values that occupy 1 byte in memory.Įxample.In early versions of Pascal, the Char type was 1 byte Variables of this type take up 2 bytes of memory. Char, WideChar represent a type using the Unicode encoding.
TURBO PASCAL A B C FREE
The following character types are implemented in Free Pascal and Delphi: program TestBoolTypes īegin // Examples of using the Ord, Pred, Succ functions for some boolean types // Boolean type The example demonstrates the use of the Ord, Succ, Pred functions for the Boolean and LongBool types. An example of using the Ord, Succ, Pred functions for boolean types Var // Declare variables of boolean typesīegin // Assigning values to variables of boolean typesģ. An example of using constants and variables of boolean typesīelow is an example of declaring and using constants and variables of boolean types for an application of type Console Application of the Delphi programming system. Boolean types are ordinal types, so the standard functions Ord, Pred, Succ can be used for them.Ģ. In boolean types, False is 0 in all bytes (zero). Boolean – a variable of this type takes up 1 byte of memory īoolean elements can only take two boolean values: True and False.There are 4 boolean types used in Pascal: This topic is a continuation of the topic:
