CCCPaste

Untitled

#include 
#include 
#include 
#include 

void swap(int * x, int * y) { // pass by reference
    int pom = *x;
    *x = *y;
    *y = pom;
}
int main(int argc, const char * argv[]) {
    int x, y;
    scanf("%d%d", &x, &y);
    
    swap(&x, &y);
    printf("%d %d\n", x, y);
    return 0;
}