What is the procedure to perform string operations in Pascal?

What is the procedure to perform string operations in Pascal?



- Pascal can’t handle the string of characters and it is one of the disadvantages of the language.

- String of characters uses lots of data elements and characters and there need to be character displacement using the string functions.

- The procedure is as follows:

- Declaration of the string take place and it is declared as the string of fixed length array like:

var string: packed array [1..50] of char;

- The length of all the strings should be same and the length of the handler routines as well.

- The size of the array can be made according to the requirement but, there is no assigning of the string constant to strings like:

string = 'hello, world';

- The length of the string should be 100-200 characters.
Post your comment