DATA STRUCTURES AND ALGORITHMS
, What is Data Structures?
• The data structure name indicates itself that organizing the
data in memory.
• There are many ways of organizing the data in the memory
as we have already seen one of the data structures, i.e.,
array in C language. Array is a collection of memory elements
in which data is stored sequentially, i.e., one after another.
• In other words, we can say that array stores the elements in
a continuous manner. This organization of data is done with
the help of an array of data structures. There are also other
ways to organize the data in memory. Let's see the different
types of data structures.
, Types of Data Structures :-
There are two types of data structures:
• Primitive data structure
• Non-primitive data structure
, Primitive Data structure
• The primitive data structures are primitive data types. The int,
char, float, double, and pointer are the primitive data
structures that can hold a single value.
• Primitive data structure is a kind of data structure that stores
the data of only one type.
• Primitive data structure can be used to call the methods.
• It starts with a lowercase character.
• Primitive data structure will contain some value, i.e., it cannot
be NULL.
, What is Data Structures?
• The data structure name indicates itself that organizing the
data in memory.
• There are many ways of organizing the data in the memory
as we have already seen one of the data structures, i.e.,
array in C language. Array is a collection of memory elements
in which data is stored sequentially, i.e., one after another.
• In other words, we can say that array stores the elements in
a continuous manner. This organization of data is done with
the help of an array of data structures. There are also other
ways to organize the data in memory. Let's see the different
types of data structures.
, Types of Data Structures :-
There are two types of data structures:
• Primitive data structure
• Non-primitive data structure
, Primitive Data structure
• The primitive data structures are primitive data types. The int,
char, float, double, and pointer are the primitive data
structures that can hold a single value.
• Primitive data structure is a kind of data structure that stores
the data of only one type.
• Primitive data structure can be used to call the methods.
• It starts with a lowercase character.
• Primitive data structure will contain some value, i.e., it cannot
be NULL.