Download to read offline

![INTRODUCTION TO ARRAY
An array is a finite ordered collection of homogeneous(same) data
element which provides random access to the element .
The array element share a common name .
Declaration :- Array
array name
int a[5] size of an array
Datatype
For e.g array of integers a[8]
0 1 2 3 4 5 6 7 8
a 1 2 3 4 5 6 7 8 9](/p?url=https%3A%2F%2Fimage.slidesharecdn.com%2Fdschapter2-210714073828%2F85%2FDs-chapter-2-2-320.jpg&__src=https%3A%2F%2Fwww.slideshare.net%2Fslideshow%2Fds-chapter-2%2F249731587&__type=image)
![Syntax Of array
int arr[10];
char arr[10];
float arr[5]
It allows storing collection of information in one organised place .
All elements are stored in continous memory location
The size and type of an array cannot be changed after its compliation , hence
array are called as Static and Structure .
Applications of Array
1. Array is used to store list of values .
2. Array is used to perform Matrix Operations .
3. Array is used to implement Search Algorithm .
4. Array is used to implement Sorting Algorithm .
5. Array is used to implement Data Structures .
6. Array is also used to implement CPU scheduling Algorithms](/p?url=https%3A%2F%2Fimage.slidesharecdn.com%2Fdschapter2-210714073828%2F85%2FDs-chapter-2-3-320.jpg&__src=https%3A%2F%2Fwww.slideshare.net%2Fslideshow%2Fds-chapter-2%2F249731587&__type=image)














An array allows storing a collection of homogeneous data elements in contiguous memory locations and provides random access to elements. It defines a variable with a name and fixed size, where all elements are of the same data type. Arrays are commonly used to store lists of values and perform operations like sorting and searching algorithms. Bubble sort is a simple sorting algorithm that compares adjacent elements and swaps them if they are in the wrong order until the list is fully sorted.

![INTRODUCTION TO ARRAY
An array is a finite ordered collection of homogeneous(same) data
element which provides random access to the element .
The array element share a common name .
Declaration :- Array
array name
int a[5] size of an array
Datatype
For e.g array of integers a[8]
0 1 2 3 4 5 6 7 8
a 1 2 3 4 5 6 7 8 9](/p?url=https%3A%2F%2Fimage.slidesharecdn.com%2Fdschapter2-210714073828%2F85%2FDs-chapter-2-2-320.jpg&__src=https%3A%2F%2Fwww.slideshare.net%2Fslideshow%2Fds-chapter-2%2F249731587&__type=image)
![Syntax Of array
int arr[10];
char arr[10];
float arr[5]
It allows storing collection of information in one organised place .
All elements are stored in continous memory location
The size and type of an array cannot be changed after its compliation , hence
array are called as Static and Structure .
Applications of Array
1. Array is used to store list of values .
2. Array is used to perform Matrix Operations .
3. Array is used to implement Search Algorithm .
4. Array is used to implement Sorting Algorithm .
5. Array is used to implement Data Structures .
6. Array is also used to implement CPU scheduling Algorithms](/p?url=https%3A%2F%2Fimage.slidesharecdn.com%2Fdschapter2-210714073828%2F85%2FDs-chapter-2-3-320.jpg&__src=https%3A%2F%2Fwww.slideshare.net%2Fslideshow%2Fds-chapter-2%2F249731587&__type=image)













