Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
void seleccion(int arreglo[], int longitud) {
for (int i = 0; i < longitud - 1; i++) {
for (int j = i + 1; j < longitud; j++) {
if (arreglo[i] > arreglo[j]) {
// ...intercambiarlos, es decir, mover el actual a la derecha y el de la derecha al actual
intercambiar(&arreglo[i], &arreglo[j]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.