#include <stdio.h>void swap(int *a, int *b){ int tmp; tmp = *a; *a=*b; *b = tmp;}int main(){int c = 10;int d = 5;printf("before c = %d d = %d\n",c,d);swap(&c,&d);printf("after c = %d d = %d\n",c,d);return 0;}