/** * swap.c * * Andi Peng * Section, Week 2 * * Attemptes to swap a and b */ #include void swap(int a, int b); int main(void) { int x = 1; int y = 2; swap(x, y); printf("x is %i\n", x); printf("y is %i\n", y); } void swap(int a, int b) { int temp = a; a = b; b = temp; }