Data Types Data Structures
Data Type is the kind or form of a
Data Structure is the collection of
variable which is being used
different kinds of data. That
throughout the program. It
entire data can be represented
defines that the particular
using an object and can be used
variable will assign the values of
throughout the entire program.
the given data type only
Implementation through Data Implementation through Data
Types is a form of abstract Structures is called concrete
implementation implementation
Can hold values and not data, so Can hold different kind and types
it is data less of data within one single object
The data is assigned to the data
Values can directly be assigned to structure object using some set of
the data type variables algorithms and operations like
push, pop and so on.
Time complexity comes into play
No problem of time complexity when working with data
structures
Examples: int, float, double Examples: stacks, queues, tree