1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | #include <stdio.h> void swap(int x, int y) { int tmp; tmp = x; x = y; y = tmp; } int main(void) { int a = 10, b = 20; swap(a, b); printf("swap() È£ÃâÈÄ a=%d b=%d\n", a, b); return 0; } | cs |