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

Related questions

+1 vote
asked Mar 3, 2021 in Prolog by SakshiSharma
0 votes
asked Oct 10, 2022 in JavaScript by SakshiSharma
...