Aim : Write a menu driven program to show following operations in a 1-D
array (using user defined functions)
Menu
1. Creation of an array
2. Searching array using
- linear
search method.
- binary
search method.
3. Sorting array using
- selection sort
- bubble sort
- insertion sort
- merge sort
4. Merge two arrays of integers
in ascending or descending order
5. Inserting an element at ith
position
6. Deleting an element from an
array
7. Quit
CODE:
OUTPUT:
No comments:
Post a Comment