// Parte 1, programa 2. Dibujen los marcos en cada punto que pide lab/README.md.
#include <stdio.h>

void swap(int *a, int *b) {
    int old_a = *a;
    *a = *b;
    *b = old_a;
}

void order(int *low, int *high) {
    if (*low > *high) {
        swap(low, high);
    }
}

void retarget(int *p, int *other) {
    p = other;
    *p = 99;
}

int main(void) {
    int x = 9;
    int y = 4;
    int z = 1;

    order(&x, &y);
    retarget(&x, &z);

    printf("x = %d, y = %d, z = %d\n", x, y, z);
    return 0;
}
