Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are compound types?

Tags:

c++

types

My question is about composite types. I can't seem to find anywhere that explains what compound types are in C++.

Are they different from composite types?

like image 419
sangmin park Avatar asked Sep 10 '18 02:09

sangmin park


People also ask

What are compound data types in C?

In computer science, a composite data type or compound data type is any data type which can be constructed in a program using the programming language's primitive data types and other composite types.

What is compound data structure?

A composite or compound data type is built by combining primitive data types. An example of a composite or compound data type is a record or a class. A data structure is a collection of data that is organised to allow efficient processing.

What are compound data types in Python explain with examples?

What is the List Compound Data Type? Lists are exactly what we might be expecting: the list compound data type contains an ordered list of objects. The list — unlike the set — may contain duplicates and is in a specific order. Unlike the tuple , the elements of the list itself don't in total comprise a record.


1 Answers

From the book C++ Primer, 5th edition:

A compound type is a type that is defined in terms of another type. C++ has several compound types, two of which, references and pointers...

I think it means compound types are types like references and pointers. Do correct me if I'm wrong.

like image 91
JeffUTF8 Avatar answered Oct 22 '22 03:10

JeffUTF8