C语言中如何利用指针完成两个变量值互换?

2025-03-11 10:14:48
推荐回答(1个)
回答1:

void swap(int *a,int *b)
{     int t;
t=*a;
*a = *b;
*b=t;
}