In: Computer Science
Data Structures has been classified into two based on its data organization. What are they? Explain with example and neat diagrams and show how the data are organized in them.
Data Structures are broadly divided into two categories as follows
Primitive Data Structure
Non Primitive Data Structure
Primitive Data Structures are bassic data structures and have different representation on different computers .
Examples of primitive Data Structures include integer,char,float,string and pointers are predefined data types which are supported by any programming language
Non Primitive Data Structures are derived from Primitive Data Structures.
Examples of Non Primitive Data Structures include Array,Lists,Files etc.
Array stores elements of same data type
Lists represent countable number of ordered values wherein the same value may occur more than once
File is a collection of records which help in reading data or writing data file depending on the operation being performed