Answered step by step
Verified Expert Solution
Question
1 Approved Answer
***here is given qsort.c *** Modify the given qsort.c program in the following ways: (1) change low , high ,and middle to be pointers to
***here is given qsort.c ***
Modify the given qsort.c program in the following ways: (1) change low , high ,and middle to be pointers to array elements rather than integers representing the array indices. Change the split function to return a pointer, not an integer. (2) Move the quicksort and split functions in a separate file named quicksort.c .Create a header file named quicksort.h that contains prototypes for the two functions. Include this header file in both qsort.c and quicksort . c. After your modifications, write a Makefile that compiles the whole program into an executable called qsort You must create intermediate targets, as shown in class. Do not simply put everything in one target as this is not a good practice, in terms of incremental compilation Files that need to be on GitHub: qsort. c -contains the modified version of the program quicksort.c . Makefile to compile the program /* Sorts an array of integers using Quicksort algorithm */ /*Copyright K.N. King - C programming Ch9.6*/ #include
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started