Your mission
Write swap_bytes, which exchanges the size bytes at a with the size bytes at b, whatever type those bytes hold.
See it in action
int x = 42, y = -7; swap_bytes(&x, &y, sizeof(int))x=-7 y=42char s[] = "left|right"; swap_bytes(s, s + 5, 1)reft|lightint x = 1234; swap_bytes(&x, &x, sizeof(int))x=1234
Your checklist
Constraints
- Expected file
swap_bytes.c- Allowed functions
- None. Write every helper yourself.
- Allowed headers
<stddef.h>defines size_t
