Diccionarios y sugerencias

1:

# incluir & ltstdio.h & gt

int main()

{

int a【10】,I , *p, j, temp

for(I = 0; i<10;i++)

scanf ("% d", & ampa[I]);

p = a;

for(I = 0;i<10;i++)

for(j = I+1;j<10;j++)

si (*(p+j)<*(p+I)

{ temp = *(p+j);*(p+j)= *(p+I); *(p+I ) = temp;}

for(I = 0;i<10;i++)

printf("% d",a[I] );

}

2:

# include & ltstdio.h & gt

int main()

{

int i, j;

char b[10], *p, temp

for(I = 0; i<10;i++ )

scanf("% c", & ampb【I】);

p = b;

for(I = 0; I<10; i++)

for (j = I +1; j & lt10;j++)

si (* (p+j) & lt; * (p+I)

{ temp = *(p+j); *(p+j) = *(p+I); *(p+I) = temp;}

for(I = 0 ;i<10;i++)

printf( "%c", b[I]);

}