+1 vote
in Prolog by
Name Some Data Types In Prolog Programming Language?

1 Answer

0 votes
by

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.

  1. ATOM : An atom is a general-purpose name with no inherent meaning.
  2. NUMBERS : Numbers are like integers,float etc.
  3. VARIABLES : Are denoted  string consisting of letters, numbers, underscore characters, and beginning with an upper-case letter or underscore.
  4. 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.
...