SlideShare a Scribd company logo
4
Most read
7
Most read
10
Most read
A Presentation About Array Manipulation(Insertion & Deletion in an array)
What Is Array ??
 Collection Of same type of data.
 Data Type ( Int, float, double, char).
 Saves data in a sequence.
 Examples:
 1. Employees Info of an organization.
 2. Score of students of a class.
 3. Table of daily rainfall data.
 4. Temperature record of hours.
 Three Types Of Array
 One Dimensional Array(1-D)
 Two Dimensional Array(2-D)
 Multi Dimensional Array(A[s1][s2[s3][s4]…)
 Initialization:
 Type Array_name [Size];
 Type Array_name [Size] = {list of Values};
 Example:
 int A[10];
 int A[5] ={50,60,70,80,90};
 User Define:
 int A[n]; [Size of Array declare by User.]
Two Dimensional Array(2-D)
 Initialization:
 Type Array_name[row_size][column_size];
 Type Array_name[row_size][column_size]={{s1},{s2},{s3}};
 Here s1,s2,s3 refers to sets of number.
 Example:
 int A[3][3] ;
 int A[3][3] = {{10,20,45},{42,79,81},{89,9,36}};
 User Define:
 int A[r][n];
 Value of {r,n} given by user .
 Initialization:
 Type Array_name[s1][s2][s3]…..[sm];
Example:
int survey [3][5][3];
float table [5][4][5][3];
Pros & Cons:
Two dimensional array often
consider as multi dimensional array.
Multi dimensional array is derived
from basic C Language.
Multi Dimensional array
Example
 One Dimensional Array(1-D):
 Loops runs from 0 to n-1 th index.
 Sorting might involve if data was ask in sorting mode.
How 1-D array insertion Works:
For 0 to n-1
{input value;(Using scanf)}
int A[5]
Insertion In An Array
 Two Dimensional Array(2 - D):
 Loops runs
for 0 to row – 1
{for 0 to column – 1
input value;(scanf) }
How It works:
int A[3][4];
Step 1 Step 2 Step 3
 One Dimensional Array(1-D):
 User given input.
 Search for data
 Runs in the loops looking for the given input.
2 Condition: Found or Not found
Found condition:
Example: search: 4 (Found if available).
 Not Found (Print Not Found)
ORIGIN (Array) After Deletion
Two Dimensional Array(2D)
 User Given Input(search: 12)
 Process:
Runs inside the loops looking for element.
Condition:
If found delete the input value and replace by ‘0’
Else print not found.
Example: Before After
A Presentation About Array Manipulation(Insertion & Deletion in an array)

More Related Content

PPTX
Data structures and algorithms
Julie Iskander
 
PPTX
AVL Tree in Data Structure
Vrushali Dhanokar
 
PDF
Array data structure
maamir farooq
 
PPTX
Searching techniques in Data Structure And Algorithm
03446940736
 
PDF
Introduction to Data Structures .
Ashutosh Satapathy
 
PPTX
Sparse matrix and its representation data structure
Vardhil Patel
 
PPT
1.7 avl tree
Krish_ver2
 
Data structures and algorithms
Julie Iskander
 
AVL Tree in Data Structure
Vrushali Dhanokar
 
Array data structure
maamir farooq
 
Searching techniques in Data Structure And Algorithm
03446940736
 
Introduction to Data Structures .
Ashutosh Satapathy
 
Sparse matrix and its representation data structure
Vardhil Patel
 
1.7 avl tree
Krish_ver2
 

What's hot (20)

PPTX
AVL Tree Data Structure
Afaq Mansoor Khan
 
PPTX
Data Structures - Lecture 3 [Arrays]
Muhammad Hammad Waseem
 
PPTX
2- Dimensional Arrays
Education Front
 
PPTX
Binary Tree Traversal
Dhrumil Panchal
 
PDF
Python list
Mohammed Sikander
 
PPTX
Transaction Serializability in DBMS
International Institute of Information Technology (I²IT)
 
PPTX
Graph traversals in Data Structures
Anandhasilambarasan D
 
PPTX
Data Structures : hashing (1)
Home
 
PPT
standard template library(STL) in C++
•sreejith •sree
 
PPTX
Python Data Structures and Algorithms.pptx
ShreyasLawand
 
PPT
Lecture 1 data structures and algorithms
Aakash deep Singhal
 
PPTX
Array in c++
Mahesha Mano
 
PPTX
Breadth First Search & Depth First Search
Kevin Jadiya
 
PPTX
Sorting
Ashim Lamichhane
 
PPTX
Transaction Processing in DBMS.pptx
Lovely Professional University
 
PDF
Python tuple
Mohammed Sikander
 
PPTX
Types of Tree in Data Structure in C++
Himanshu Choudhary
 
PPT
Java awt
Arati Gadgil
 
PPTX
Queue ppt
SouravKumar328
 
PPTX
Linked List
RaaviKapoor
 
AVL Tree Data Structure
Afaq Mansoor Khan
 
Data Structures - Lecture 3 [Arrays]
Muhammad Hammad Waseem
 
2- Dimensional Arrays
Education Front
 
Binary Tree Traversal
Dhrumil Panchal
 
Python list
Mohammed Sikander
 
Graph traversals in Data Structures
Anandhasilambarasan D
 
Data Structures : hashing (1)
Home
 
standard template library(STL) in C++
•sreejith •sree
 
Python Data Structures and Algorithms.pptx
ShreyasLawand
 
Lecture 1 data structures and algorithms
Aakash deep Singhal
 
Array in c++
Mahesha Mano
 
Breadth First Search & Depth First Search
Kevin Jadiya
 
Transaction Processing in DBMS.pptx
Lovely Professional University
 
Python tuple
Mohammed Sikander
 
Types of Tree in Data Structure in C++
Himanshu Choudhary
 
Java awt
Arati Gadgil
 
Queue ppt
SouravKumar328
 
Linked List
RaaviKapoor
 
Ad

Viewers also liked (7)

PPT
Array Presentation (EngineerBaBu.com)
EngineerBabu
 
PPTX
Array in c language
home
 
PPT
Array Presentation
Deep Prajapati Microplacer
 
PPTX
Array ppt
Kaushal Mehta
 
PPT
Arrays Class presentation
Neveen Reda
 
PPT
Arrays
archikabhatia
 
PPTX
Array in C
Kamal Acharya
 
Array Presentation (EngineerBaBu.com)
EngineerBabu
 
Array in c language
home
 
Array Presentation
Deep Prajapati Microplacer
 
Array ppt
Kaushal Mehta
 
Arrays Class presentation
Neveen Reda
 
Array in C
Kamal Acharya
 
Ad

Similar to A Presentation About Array Manipulation(Insertion & Deletion in an array) (20)

PPT
Array
Tejas Patel
 
PPTX
Arrays.pptx
NavyaParashir
 
PPTX
UNIT-5_Array in c_part1.pptx
sangeeta borde
 
PPTX
Abir ppt3
abir96
 
PDF
Array in C full basic explanation
TeresaJencyBala
 
PPTX
Array 2 hina
heena94
 
PPTX
Unit4pptx__2024_11_ 11_10_16_09.pptx
GImpact
 
PPT
Arrays Basics
Nikhil Pandit
 
PDF
arrays-130116232821-phpapp02.pdf
MarlonMagtibay2
 
PPT
Array 31.8.2020 updated
vrgokila
 
PPTX
ARRAYS.pptx
MamataAnilgod
 
PPTX
Basic array in c programming
Sajid Hasan
 
PPTX
Arrays In C Language
Surbhi Yadav
 
PPT
uderstanding arrays and how to declare arrays
ShirishaBuduputi
 
PPTX
Module_3_Arrays - Updated.pptx............
ChiragKankani
 
PPT
presentation_arrays_1443553113_140676.ppt
NamakkalPasanga
 
PPTX
Array
Deep Shah
 
PPTX
Arrays
Chirag vasava
 
PPT
Array in c
Ravi Gelani
 
DOC
Array
Shankar Gangaju
 
Arrays.pptx
NavyaParashir
 
UNIT-5_Array in c_part1.pptx
sangeeta borde
 
Abir ppt3
abir96
 
Array in C full basic explanation
TeresaJencyBala
 
Array 2 hina
heena94
 
Unit4pptx__2024_11_ 11_10_16_09.pptx
GImpact
 
Arrays Basics
Nikhil Pandit
 
arrays-130116232821-phpapp02.pdf
MarlonMagtibay2
 
Array 31.8.2020 updated
vrgokila
 
ARRAYS.pptx
MamataAnilgod
 
Basic array in c programming
Sajid Hasan
 
Arrays In C Language
Surbhi Yadav
 
uderstanding arrays and how to declare arrays
ShirishaBuduputi
 
Module_3_Arrays - Updated.pptx............
ChiragKankani
 
presentation_arrays_1443553113_140676.ppt
NamakkalPasanga
 
Array
Deep Shah
 
Array in c
Ravi Gelani
 

Recently uploaded (20)

PDF
EVS+PRESENTATIONS EVS+PRESENTATIONS like
saiyedaqib429
 
PDF
settlement FOR FOUNDATION ENGINEERS.pdf
Endalkazene
 
PPTX
Information Retrieval and Extraction - Module 7
premSankar19
 
PDF
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
PDF
The Effect of Artifact Removal from EEG Signals on the Detection of Epileptic...
Partho Prosad
 
PPTX
Module2 Data Base Design- ER and NF.pptx
gomathisankariv2
 
PPTX
easa module 3 funtamental electronics.pptx
tryanothert7
 
PPT
Lecture in network security and mobile computing
AbdullahOmar704132
 
PDF
dse_final_merit_2025_26 gtgfffffcjjjuuyy
rushabhjain127
 
PDF
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
PPTX
business incubation centre aaaaaaaaaaaaaa
hodeeesite4
 
PDF
July 2025: Top 10 Read Articles Advanced Information Technology
ijait
 
PDF
Introduction to Ship Engine Room Systems.pdf
Mahmoud Moghtaderi
 
PPTX
Inventory management chapter in automation and robotics.
atisht0104
 
PDF
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
PDF
Queuing formulas to evaluate throughputs and servers
gptshubham
 
PDF
Principles of Food Science and Nutritions
Dr. Yogesh Kumar Kosariya
 
PDF
2010_Book_EnvironmentalBioengineering (1).pdf
EmilianoRodriguezTll
 
PDF
Activated Carbon for Water and Wastewater Treatment_ Integration of Adsorptio...
EmilianoRodriguezTll
 
PDF
Software Testing Tools - names and explanation
shruti533256
 
EVS+PRESENTATIONS EVS+PRESENTATIONS like
saiyedaqib429
 
settlement FOR FOUNDATION ENGINEERS.pdf
Endalkazene
 
Information Retrieval and Extraction - Module 7
premSankar19
 
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
The Effect of Artifact Removal from EEG Signals on the Detection of Epileptic...
Partho Prosad
 
Module2 Data Base Design- ER and NF.pptx
gomathisankariv2
 
easa module 3 funtamental electronics.pptx
tryanothert7
 
Lecture in network security and mobile computing
AbdullahOmar704132
 
dse_final_merit_2025_26 gtgfffffcjjjuuyy
rushabhjain127
 
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
business incubation centre aaaaaaaaaaaaaa
hodeeesite4
 
July 2025: Top 10 Read Articles Advanced Information Technology
ijait
 
Introduction to Ship Engine Room Systems.pdf
Mahmoud Moghtaderi
 
Inventory management chapter in automation and robotics.
atisht0104
 
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
Queuing formulas to evaluate throughputs and servers
gptshubham
 
Principles of Food Science and Nutritions
Dr. Yogesh Kumar Kosariya
 
2010_Book_EnvironmentalBioengineering (1).pdf
EmilianoRodriguezTll
 
Activated Carbon for Water and Wastewater Treatment_ Integration of Adsorptio...
EmilianoRodriguezTll
 
Software Testing Tools - names and explanation
shruti533256
 

A Presentation About Array Manipulation(Insertion & Deletion in an array)

  • 2. What Is Array ??  Collection Of same type of data.  Data Type ( Int, float, double, char).  Saves data in a sequence.  Examples:  1. Employees Info of an organization.  2. Score of students of a class.  3. Table of daily rainfall data.  4. Temperature record of hours.
  • 3.  Three Types Of Array  One Dimensional Array(1-D)  Two Dimensional Array(2-D)  Multi Dimensional Array(A[s1][s2[s3][s4]…)
  • 4.  Initialization:  Type Array_name [Size];  Type Array_name [Size] = {list of Values};  Example:  int A[10];  int A[5] ={50,60,70,80,90};  User Define:  int A[n]; [Size of Array declare by User.]
  • 5. Two Dimensional Array(2-D)  Initialization:  Type Array_name[row_size][column_size];  Type Array_name[row_size][column_size]={{s1},{s2},{s3}};  Here s1,s2,s3 refers to sets of number.  Example:  int A[3][3] ;  int A[3][3] = {{10,20,45},{42,79,81},{89,9,36}};  User Define:  int A[r][n];  Value of {r,n} given by user .
  • 6.  Initialization:  Type Array_name[s1][s2][s3]…..[sm]; Example: int survey [3][5][3]; float table [5][4][5][3]; Pros & Cons: Two dimensional array often consider as multi dimensional array. Multi dimensional array is derived from basic C Language. Multi Dimensional array Example
  • 7.  One Dimensional Array(1-D):  Loops runs from 0 to n-1 th index.  Sorting might involve if data was ask in sorting mode. How 1-D array insertion Works: For 0 to n-1 {input value;(Using scanf)} int A[5]
  • 8. Insertion In An Array  Two Dimensional Array(2 - D):  Loops runs for 0 to row – 1 {for 0 to column – 1 input value;(scanf) } How It works: int A[3][4]; Step 1 Step 2 Step 3
  • 9.  One Dimensional Array(1-D):  User given input.  Search for data  Runs in the loops looking for the given input. 2 Condition: Found or Not found Found condition: Example: search: 4 (Found if available).  Not Found (Print Not Found) ORIGIN (Array) After Deletion
  • 10. Two Dimensional Array(2D)  User Given Input(search: 12)  Process: Runs inside the loops looking for element. Condition: If found delete the input value and replace by ‘0’ Else print not found. Example: Before After