
Implement a function that exchanges the values stored at two integer addresses.
int x = 7, y = 99; swap_int(&x, &y);Expected result
x = 99, y = 7For your own tracking. Tests grade your code.
int x = 0, y = -3; swap_int(&x, &y);Expected result
x = -3, y = 0Expected files
swap_int.cAllowed functions
None. Write every helper yourself.

v0.40: Create exercises. Challenge the community.
Meet Studio →Implement a function that exchanges the values stored at two integer addresses.
int x = 7, y = 99; swap_int(&x, &y);Expected result
x = 99, y = 7For your own tracking. Tests grade your code.
int x = 0, y = -3; swap_int(&x, &y);Expected result
x = -3, y = 0Expected files
swap_int.cAllowed functions
None. Write every helper yourself.

Run the tests to grade your code
Build your code, then check each test here. Open a result to inspect its output.