struct S{int n; int a[20]; };
void f(struct S *p)
{ int i,j,t;
for (i=0; in-1; i++)
for (j=i+1; j
n; j++)
if (p->a[i] > p->a[j]) { t= p->a[i]; p->a[i] = p->a[j]; p->a[j] = t; }
}
main()
{ int i; struct S s={10, {2,3,1,6,8,7,5,4,10,9}};
f(&s);
for (i=0; i