Difference between data type and data structure

What is the difference between a data type and a data structure ?

Data TypeData Structure
A data type is the kind of a variable.it defines that a particular variable will only assign values of a given type only.Data structure is the collection of different form of data.
It is in the form of abstract implementation.Implementation is called concrete implementation.
It can hold values and not data. It is called a dataless.It can hold different types of data within one single object.
Values can be directly assigned to variables.Some algorithms and operations like push, pop are used to assign values.
No problem of time complexity.Time complexity is there.
Eg: Integer, Character, Double etc.Eg: Linked List, Queue, Tre etc.
Article Rating
Notify of
Inline Feedbacks
View all comments