General Knowledge Basic General Knowledge Subjective
Mar 19, 2013

What are the ways in which the table of constants can be created?

Detailed Explanation

- 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
a: integer;
b: integer;
c: char
end;
begin
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.

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback