Reference no: EM132196943
Write a C Program: Using qsort, write a void function named sort with 2 args:
an array of ints, which I'll call a.
an unsigned that is the number of elements in the array.
sort may assume without checking that a has at least one element, and that all the
values in a are in the range [10, 999].
sort's job is to sort the array a so that
All the 2-digit numbers come before all the 3-digit numbers.
All the 2-digit numbers are in decreasing order.
All the 3-digit numbers are in decreasing order.
For example if the array held {100, 22, 200, 11} on entry, your sort function wouldchange it to {22, 11, 200, 100}