# include <stdio.h>
void huhuan(int *, int *);
int main(void)
{
int a=3,b=5;
/*
printf("请输入2个整数\n");
printf("a = ");
scanf("%d",a);
printf("b = ");
scanf("%d",b);
*/
huhuan(&a,&b);
printf("a = %d b = %d\n",a,b);
return 0;
}
void huhuan(int * a,int * b)
{
int t;
t = *a;
*a = *b;
*b = t;
return;
}
去掉屏蔽 运行完 a 的输入程序就奔溃了 什么原因呀