0% found this document useful (0 votes)
14 views1 page

Data Types vs. Data Structures

Data types define the kind of variable used in a program, allowing for specific values to be assigned, while data structures are collections of different data types that can be manipulated as a single object. Data types represent abstract implementations, whereas data structures represent concrete implementations that can hold multiple types of data. Examples of data types include int and float, while examples of data structures include stacks and queues.

Uploaded by

ramyasrikakani
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views1 page

Data Types vs. Data Structures

Data types define the kind of variable used in a program, allowing for specific values to be assigned, while data structures are collections of different data types that can be manipulated as a single object. Data types represent abstract implementations, whereas data structures represent concrete implementations that can hold multiple types of data. Examples of data types include int and float, while examples of data structures include stacks and queues.

Uploaded by

ramyasrikakani
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

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

You might also like