Why do standard strings take less space when used in the program? - PASCAL
Why do standard strings take less space when used in the program?
- 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.