---
# System prepended metadata

title: Coding exercise

---

# Coding exercise

Write a swap function that takes two pointers to 4-byte unsigned integer values, and swaps the values under these pointers in the memory. Please provide your solution here, in C (at least, C99).

Example usage of swap function:
```c=
#include <stdint.h>

uint32_t a = 0x12, b = 0x34;

swap(&a, &b);

```

```c=
// Your code goes here
void swap(/*Arguments*/)
{
}
```