赞
踩
#include<stdio.h>
void f(int *x, int *y)
{
int t;
t = *x;*x = *y;*y = t;
}
int main()
{
int a = 8, b = 3;int* x, * y;
x = &a;y = &b;
f(x, y);
printf("%d %d", a, b);
return 0;
}
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。