Basic Concept Of Data Strcuture
⫸ Data :
Data is input given to a system, which is the system processes. thus data is row , unprocessed
input given to system.
DATA======>>>SYSTEM=====>>>OUTPUT
Types of Data
1]Atomic Data:
It's a single or non-decomposable entity.
ex; character 'a'
numeric '10'
2]Composite Data:
Grouped data item which consist of sub-fields of which is atomic.
ex; Phone Number
⫸Data Types:
- The set of values and the set of operations that operate on those values.
- The data storage format that a variable can store data to perform a specific operation
Types Of Data Types:
1] Built-In Data Type
The data types provide by programming language are known as built-in data types.
2] User-Defined Data Type
Those data types which are defined by the user as per his requierments are called as user-defined data types.
Types of User-Defined Data Type
- Enumeration(enum)
- Structure
- Union
Derived data types are the data types that are derived from primitive data types.
'C' language provides derived data types such as Array, Pointer.,etc..
- Array:
- Assign a single name to whole group.
- For Example, int a[10];
- Above example defines an array of a size 10.
- Pointers:
- A pointer is a memory location that holds a memory address.
- Pointer are efficient in handling complex data structures and data tables.
- Pointer increase the execution speed.
- There are two special pointers operators * and &.
- A data represents a container for data values a place where data values are strored and later retrieved.
- A data object is characterized by a set of attributes. One of the most important of which is the data type.
- Data object are the entities that actually contain the information. Data objects are the implementations of the data structure by the programmer/user.
Comments
Post a Comment