{
a=a+b;b=a-b;a=a-b;
}
main()
int a=2,b=5;
swap(a,b);/*函数调用*/
printf(“a=%d,b=%d”,a,b);
4.函数的原型声明
格式:函数类型 函数名(形参类型1,形参类型2,…); 或
函数类型 函数名(形参类型1