Hello Magnetzz…!
Welcome in my new blog so on last blog
of DSA we studied about the intro of DSA an their Classification as we know
that the DSA is classified into two types-
1. Primitive Data structure
2. Non-Primitive Data structure
So in this blog we are going to
discuss the Primitive DSA in detail.
Primitive Data
structure-
A primitive
Data structure is that DS which can be directly from machine instruction and is
defined directly by the system and compiler. A primitive data structure is
usually efficient to manipulate and can be used to represent a wide range of
basic data values. They are often used to store and process simple data values
in programs and can be used for a variety of purposes, such as mathematical
calculations, logical operations, and input/output operations. Understanding
primitive data structure is an important foundation for learning how to program
and develop more complex programs and algorithms. It is a pre-defined data
structure user cannot do anything in it it is fully based on machine
instruction user can only use it whenever he needed.
Primitive Data
structure is further divided into three more types-
1. Int
:- it stands for integer which means it have numbers present in it (complete
value only decimal is not included) it is used to perform various mathematical
tasks. An int variable is used to store integer values.
Ex ….
24,45,65,27 e.t.c
2. Float
:- it stands for floting value means decimal value it has point values
in it it is also used as for mathematical task performance.
Ex ….. 12.3
, 456.67, 23.6 e.t.c
3. Char :-
it stands for character which includes all the existing alphabets which is
generally used to for interaction between user and system just like input and
output.
Ex…
A,C,B,t,I,o,t,r e.t.c
if you have to read our last blog of Data Structure then please checkout our last blog link is provide-- DSA detailed blog
Thanks for reading….
0 Comments