您的位置:首页 > 其它

c

2016-04-20 16:51 225 查看

#include <stdio.h>

void temp(int *p1, int *p2);

int main( )

{

    int a,b;

    scanf("%d,%d",&a,&b);

    temp(&a,&b);

    printf("%d %d\n",a,b);

    return 0;

}

void temp(int *p1, int *p2)

{

 int t;

 t=*p1;

 *p1=*p2;

    *p2=t;

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: