求大神,哪里错了
#include <stdio.h>
int main()
{
int array[3] = {1, 2, 3};
int i, j;
int temp;
printf ("*****************排序之前****************\n");
for (i=3; i>0; i--)
{
for (j=0; j<i; j++)
{
if (array[j] < array[j+1])
{
temp = array[j];
array[j] = array[j+1];
array[j+1] = temp;
}
}
}
printf("*************排序之后******************\n");
for (i=0; i<3; i++)
{
printf ("%d\n", array[i]);
}
return 0;
}