Exercicio 2

#include <stdio.h>
#include <stdlib.h>

void troca(int*x, int *y){
    int aux;
    aux = *x;
    *x = *y;
    *y = aux;
}

int main()
{

    int x = 4, y = 10;

    printf("ANTES: x = %d e y = %d\n",x,y);

    troca(&x,&y);

    printf("DEPOIS: x = %d e y = %d\n",x,y);


    return 0;
}