/* CS107
 * Lecture 10
 * ----------
 * This program is a sample program we will use to
 * explore what the assembly code version of our
 * program looks like.
 */

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

void exchange(long *xp, long *yp) {
    long temp = *xp;
    *xp = *yp;
    *yp = temp;
}

int main()
{
    long x = 1000;
    long y = 42;
   
    printf("Before foo: x:%lu, y:%lu\n",x,y); 
    exchange(&x, &y);
    printf("After foo: x:%lu, y:%lu\n",x,y);
    return 0;
}
