DEV Community

Ukpai Chukwuemeka
Ukpai Chukwuemeka

Posted on

Data Structure 102: Types of Data Structure


In my previous post Data Structure 101 we were able to understand what data-structure is and algorithm

On that note, we would be looking at the types of data-structure.
There are two main types of data structures, These includes;

Primitive Data Structure - They store the data of only one type.
Examples of primitive data structure are integer, character, float.

Non-Primitive Data Structure - is a type of data structure that can store the data of more than one type. Non primitive data structure are classified into two i.e., linear and non-linear data structure

Elements are stored in a sequential order. Examples; Arrays, Queues, Stacks and Linked Lists.

Elements are not stored in sequential order. Examples; trees and graphs are non-linear data structures.

Discussion (0)