How can you declare the string in Pascal?

devquora
devquora

Posted On: Feb 22, 2018

 

The string is defined as the sequence of characters having an optimal size prerequisite. The characters consist of numbers, letters, whitespaces or a combination of all. Pascal allows many methods to declare or define a string in the program. These are:

  • As a Character Array
  • As a string variable
  • As a short string
  • As a null terminated string
  • As an AnsiString

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Pascal interview questions

    What do you understand by Pascal?

    This is the first question every interview may ask, so make a good definition in your mind. Pascal is a programming language which supports data structure and the structured programming. It is basical...

    Pascal interview questions

    Why Pascal?

    Pascal is a computer programming language which encourages you to enhance your programming skills. It is a language that you may easily learn and practices the programming techniques. It let you use f...

    Pascal interview questions

    Why Pascal is named as Pascal?

    Designed in 1968-1969 by Niklaus Wrath, it was first published in the year 1970. It is named after the Blaise Pascal who was French Mathematician and philosopher. He is famous for his invention of cal...