#include
#include
int values[] = { 3, 8, 9, 7, 3, 5 };
int compare (const void * a, const void * b)
{
return ( *(int*)a - *(int*)b );
}
int main ()
{
int j;
qsort (values, 6, sizeof(int), compare);
for (j = 0; j < 6; j++)
{
printf ("%d ",values[ j ]);
}
return 0;
}