Write a program using C language More Pointers and Functions Write a function, r
ID: 654233 • Letter: W
Question
Write a program using C language
More Pointers and Functions
Write a function, reorder(), which is given three pointers to floats and reorders the values pointed to into ascending order. The prototype for this function is:
i.e. when your function is done, the following should hold:
Use your swap_big() function from the previous problem to implement reorder(). Your data file, reorder.dat, should show that your function works under all conditions. Write a driver to allow you to test this function for different triplets of floats when redirected from your data file.