Professional Documents
Culture Documents
Burbuja Con Apuntadores
Burbuja Con Apuntadores
#include <stdio.h>
#include <stdlib.h>
/* run this program using the console pauser or add your own getch, system("pause") or input loop
*/
}
}
}
printf("Sin ordenar\n");
for(k=0; k < n; k++){
printf("%d ",*(ap+k));
}
ordena(&a[0],n);
printf("\nOrdenados\n");
for(k=0; k < n; k++){
printf("%d ",*(ap+k));
}
return 0;
}