Data Structures

At the heart of virtually every computer program are its algorithms and its data structures. It is hard to separate these two items, for data structures are meaningless without algorithms to create and manipulate them, and algorithms are usually trivial unless there are data structures on which to operate.
Data type specifies the type of data stored in a variable. The data type can be classified into two types Primitive data type and Non-Primitive data type

PRIMITIVE DATATYPE
 The primitive data types are the basic data types that are available in most of the programming languages. The primitive data types are used to represent single values.

Integer: This is used to represent a number without decimal point.
Eg: 12, 90

Float and Double: This is used to represent a number with decimal point.
Eg: 45.1, 67.3

 Character : This is used to represent single character
Eg: ‘C’, ‘a’

 String: This is used to represent group of characters.
Eg: "M.S.P.V.L Polytechnic College"

Boolean: This is used represent logical values either true or false.

NON-PRIMITIVE DATATYPES
 The data types that are derived from primary data types are known as non-Primitive data types. These datatypes are used to store group of values.

The non-primitive data types are
1. Arrays
2. Structure
3. Union
4. linked list
5. Stacks
6.  Queue etc
Data Structures Data Structures Reviewed by Unknown on 04:37 Rating: 5

No comments:

Powered by Blogger.