Reference no: EM132494186
Create the file called order.c (and its associated header file).
Inside, create the static function called ascending2() that takes two int pointers and returns void.
The function should place the smaller of the two int values in the first memory location and the larger in the second.
In other words, ascending2() should swap its parameters if the first is larger than the second, but do nothing otherwise.
Create another function called ascending3() that takes three int pointers and returns void.
Similarly to ascending2(), the function should place the smallest value into the first memory location, the median value into the second location and the largest value into the third.
Note: It may be useful to call ascending2() from ascending3(). Write the third function called descending3(), similar to ascending3() but placing the int values in the reverse order. Create the file called numbers.c containing a main() function. Include appropriate testing code for the functions you've just created.