int i,j,t;
int a[5]={12,4,12342,32,10};
for(i=1;i<5;i++)
{
t=a[i];
for (j=i-1;j>=0&&a[j]>t;j--)
a[j+1]=a[j];
a[j+1]=t;
}
for (i=0;i<5;i++)
{
printf("%d ",a[i]);
}
int i,j,t;
int a[5]={12,4,12342,32,10};
for(i=1;i<5;i++)
{
t=a[i];
for (j=i-1;j>=0&&a[j]>t;j--)
a[j+1]=a[j];
a[j+1]=t;
}
for (i=0;i<5;i++)
{
printf("%d ",a[i]);
}