Why do standard strings take less space when used in the program?-PASCAL

Untitled Forums Programming Assignment Help Why do standard strings take less space when used in the program?-PASCAL

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

    Why do standard strings take less space when used in the program? – PASCAL

    #15226
    ahprofessional
    Participant

    Ans:- The use of custom strings makes it easier for the program to take less space and run faster. It also takes the input from the user and makes an entry in the table.
    The string type can be created with the maximum length of the command string that is required and present in the code. The handling procedures can be created for the string type so that the constant declarations can be used as:
    const strlen = 100;
    type mystring = packed array [1..strlen] of char;
    The string size can be changed according to the requirement and the string libraries are used to make it easier to code with.

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