You are on page 1of 1

Matric No: 20/52HA094

Differences between Data structure and Data type


1). Data structure is the collection that holds data which can be manipulated and used
in programming so that operations and algorithm can be more easily applied

While Data type represent the nature and type of data.All the data that belongs to a
common data type share the same common properties

2). Data structure hold the data along with their values; data structure can hold
different types of data within one single object

While Data type don't store the value of there data; they represent only the type of
data that is stored

3). Data structure are implemented in concrete manner

While Data type are implemented In an abstract manner

4). Time complexity plays an important role in Data structure because manipulation
and execution of logic over data that it stored.

While in Data type there is no issue of time complexity because data types deal only
with the type and nature of data.

5). Examples of Data structure are: stacks, queues, tree

Examples of Data type are: int, float, double

You might also like