/* File: swap1.c First attempt a swapping the values in two variables. */ #include void swap(int a, int b) ; int main() { int a, b ; a = 79 ; b = 42 ; printf("a = %d, b = %d\n", a, b) ; swap(a,b) ; printf("a = %d, b = %d\n", a, b) ; return 0 ; } /* function: swap(a,b) exchanges the values stored in a & b. THIS VERSION DOESN'T WORK! */ void swap(int a, int b) { int temp; temp = a ; a = b ; b = temp ; return ; }