In
computer science
Computer science is the study of computation, information, and automation. Computer science spans Theoretical computer science, theoretical disciplines (such as algorithms, theory of computation, and information theory) to Applied science, ...
, a composite data type or compound data type is a
data type
In computer science and computer programming, a data type (or simply type) is a collection or grouping of data values, usually specified by a set of possible values, a set of allowed operations on these values, and/or a representation of these ...
that consists of
programming language
A programming language is a system of notation for writing computer programs.
Programming languages are described in terms of their Syntax (programming languages), syntax (form) and semantics (computer science), semantics (meaning), usually def ...
scalar data types and other composite types that may be heterogeneous and hierarchical in nature. It is sometimes called a structure or a
record or by a language-specific keyword used to define one such as
struct. It falls into the aggregate type classification which includes homogenous collections such as the
array and
list
A list is a Set (mathematics), set of discrete items of information collected and set forth in some format for utility, entertainment, or other purposes. A list may be memorialized in any number of ways, including existing only in the mind of t ...
.
See also
*
*
*
*
References
{{Data types
Data types
Type theory
Articles with example C code
Articles with example C++ code