1.

Name Some Data Types In Prolog Programming Language?

Answer»

Following are the data types supported by prolog :Prolog’s single data type is the TERM. Terms are either atoms, numbers, variables or compound terms.

  • ATOM : An atom is a general-purpose name with no INHERENT meaning.
  • NUMBERS : Numbers are like integers,float etc.
  • VARIABLES : Are denoted string consisting of letters, numbers, underscore characters, and beginning with an upper-case letter or underscore.
  • COMPOUND TERMS : A compound term is composed of an atom CALLED a “functor” and a number of “arguments”, which are again terms. They are written by SEPARATING them by commas.

Following are the data types supported by prolog :Prolog’s single data type is the term. Terms are either atoms, numbers, variables or compound terms.



Discussion

No Comment Found