Quote Originally Posted by AvaGodess View Post
I did something like this, but i got a negative number.

Code:
rintf( "\n\n" );
   clock_t start = time(NULL);
   bubbleSort( array, SIZE );
   printf("Time elapsed: %f seconds \n", ((double)clock() - start) / CLOCKS_PER_SEC);
   printf( "Sorted array:\n" );
Your search-and-replace needs work.