精慕HU
C语言没有这种写法,正确的写法是:12345678910111213141516#include<stdio.h> void Swap(int *a, int *b){ int temp = *a; *a = *b; *b = temp;}int main(){ int m = 3, n = 5; Swap(&m, &n); printf ("m = %d, n = %d\n", m, n); return 0; }指针(地址)传递,不是引用传递。