Arm Interview Question

Swap two numbers using pointers in C and in verilog.