CECS 282
LAB ASSIGNMENT 6
Assigned date: 3/7
Due date: Tue 3/14
10 points
Impelment a function called bubble_sort that has the following prototype.
bubble_sort(int *array, int size, pointer to a function)
Pre condition
array - a pointer to a an array of size element.
pointer to function - a pointer to a function that compares two values (depending on sorting in ascending order or descending order)
Post condition
Sort the array in ascending or descending based on the the pointer to a function.
Write the main function to perform the following:
GRADING