C语言中swap是什么意思

2025-02-25 03:48:08
推荐回答(1个)
回答1:

一般是交换两个变量的值的函数名。
如void
swap(int
&a,
int
&b)
{int
t=a;a=b;b=t;}