What are the ways in which the table of constants can be created? - PASCAL
What are the ways in which the table of constants can be created?
- Pascal provides no provision to create the table for the fixed data type that allow to be used at the compile time.
- The compiler can be used to assign into the pre-initialized data that can determine the use of pre-defined functions.
- Pascal uses some pre-defined functions and logical assignments to create the table of constants like:
var table: record
table.a := 1;
table.b := 45;
table.c := 'x';
- The table of constants can be done in a program block level and it provides the compiler to perform the optimizations operations.