# COMP1521 18s1 Exam Q4 A. i) x | y == 1111111011111100 ii) x & y == 0001001000010100 iii) x ^ y == 1110110011101000 iv) ~ x == 1110110111001011 B. The function `f()' swaps the two values pointed to by `x' and `y' around so that, after the function call, `x' points to the value initially pointed by `y', and `y' points to the value initially pointed to by `x'.