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.