ARRAY
ARRAY
1.Start
2. Create an Array of a desired data type and size.
3. Initialize a variable 'i' as 0.
4. Enter the element at ith index of the array.
5. Increment i by 1.
6. Repeat Steps 4 & 5 until the end of the array.
7. Stop
OUTPUT
Array Before Insertion:
LA[0] = 0
LA[1] = 0
LA[2] = 0
Inserting elements.. Array After Insertion:
LA[0] = 2
LA[1] = 3
LA[2] = 4
LA[3] = 5
LA[4] = 6
Array - Deletion Operation
ALGORITHM
1. Start
2. Set J = 0
3. Repeat steps 4 and 5 while J < N
4. IF LA[J] is equal ITEM THEN GOTO STEP 6
5. Set J = J +1
6. PRINT J, ITEM
7. Stop
Output
Array - Traversal Operation
ALGORITHM
1.Start
2. Set LA[K-1] = ITEM
3. Stop
Array - Update Operation
output