Forums Programming Assignment Help What is the procedure to perform string operations in Pascal?

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

    What is the procedure to perform string operations in Pascal?

    • This topic was modified 6 years, 11 months ago by admin.
    #15228
    ahprofessional
    Participant

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

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