SOURCE CODE:
OUTPUT: Enter size of your array: 5 Enter elements of your array: 2 4 6 8 10 Enter the choice: 1. Search for an element. 2. Insert an element. 3. Delete an element. 4. Display all elements. 0. EXIT Your choice: 2 Enter the item to insert: 7 Enter the position to insert element: 4 Enter the choice: 1. Search for an element. 2. Insert an element. 3. Delete an element. 4. Display all elements. 0. EXIT Your choice: 4 Elements: 2 4 6 7 8 10 Enter the choice: 1. Search for an element. 2. Insert an element. 3. Delete an element. 4. Display all elements. 0. EXIT Your choice: 3 Enter the position of element to delete: 5 Enter the choice: 1. Search for an element. 2. Insert an element. 3. Delete an element. 4. Display all elements. 0. EXIT Your choice: 4 Elements: 2 4 6 7 10 Enter the choice: 1. Search for an element. 2. Insert an element. 3. Delete an element. 4. Display all elements. 0. EXIT Your choice: 1 Enter the item to search for: 7 Element Found at 4 Enter the choice: 1. Search for an element. 2. Insert an element. 3. Delete an element. 4. Display all elements. 0. EXIT Your choice: 0 |
C LAB > (Sem2) Data Structures >