Hey all, back once again. I've got some more code that i need some help with. Thanks to Aia for his help as well. Anywho this time I've still got the fifty random integers and now I'm working on sorts. I've managed to complete the bubblesort portion of the book but the Qsort is still giving me a bit of an issue. Basically i need to take what i have, print the fifty randoms, sort them and then print them once sorted. Any help as usual would be greatly appreciated.
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main( void )
{
int fifty[50];
int i;
srand( (unsigned ) time( NULL ) );
for( i = 0 ; i < 50; i++ )
{
fifty[i] = rand();
}
for( i = 0; i < 50; i++ )
{
printf( "%d\n", fifty[i] );
}
getchar();
return 0;
}