int a[100]={0}; // array to sort
for(int i = 0 ; i < 100 ; i++) //filing the array
a[i] = (rand());
time (&start);
doubleBubbleSort(a,100);
printElements(a,100); // print elements
time (&end);
dif = difftime (end,start);
printf ("It took %.0f seconds to double bubble sort the array.\n", dif );
getch();
}
i will be glad full if any one tell me how to get time like 1.56 seconds,too!