```
/*Does the Bubble sort algorithm above sort the array into ascending or descending order?*/
void BubbleSort(int Data[ ],int ArraySize)
{
char sorted = âfâ;
int pass,a,Temp;
pass = 1;
while (sorted=='f' && pass<=ArraySize-1)
{
sorted = 't';
for (a=0;a<ArraySize - pass;a++)
{
if (Data[a] < Data[a+1])
{
Temp = Data[a];
Data[a] = Data[a+1];
Data[a+1] = Temp;
sorted = 'f';
}
}
pass++;
}
}
```

rubberman 1,355