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

Untitled Forums Programming Assignment Help What are the ways in which the table of constants can be created? – PASCAL

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #15223
    Aakanksha
    Participant

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

    #15227
    ahprofessional
    Participant

    Ans:- 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

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.