What is the definition of Pascal Sets?

devquora
devquora

Posted On: Feb 22, 2018

 

We know Pascal is a set of defined elements of same time that is allowed in Pascal to define set data type. The elements of a set are called as members. If we check in Mathematics, sets are denoted with the braces {} but in Pascal, sets are denoted with square brackets []. Both enclosed the elements in the braces or brackets. For Pascal, it is also referred as a set constructor.

Pascal set types are defined as-

type Set-identifier=set of base type;

Set type variables are defined as:

Var S1, s2, s3.......: set-identifier;

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