0
10kviews
Explain different types of data structures with examples
1 Answer
written 6.3 years ago by | • modified 6.3 years ago |
Data structure are broadly classified as
a. Primitive Data Structure
b. Non-Primitive Data Structure / Derived Data Structure
Examples of Primitive data structures are
i. Integer
ii. Character
iii. Float and
iv. Pointer
Examples of Non-primitive data structures are
i. Arrays
ii. Lists
iii. Files
Linear Data Structure
i. A data structure that maintains a linear relationship between its elements, it is called linear data structure
ii. For example, an array,stack and Queue holds the linear relationship between its elements, it is linear data structure
Non-Linear Data Structure
i. In case of non-linear data structure, they do not maintain any linear relationship between their elements
ii. For example tree,graph