/* A CH applet with pointer cannot be executed across the network */ #include void swap(int *a, int *b); int main() { int x = 4; int y = 5; printf("x = %d, y = %d\n", x, y); swap(&x,&y); /* pass by value */ printf("x = %d, y = %d\n", x, y); getchar(); } void swap(int *a, int *b) { int temp; temp = *a; *a = *b; *b = temp; }