This is a program to swap two numbers using pointers.
#include #include void swap(int *x, int *y){ int temp = *x; *x = *y;