将两个整型变量的值进行交换

//将两个整型变量的值进行交换
#include stdio.h
 int main()
{
	int a, b, c;
	a = 1;
	b = 2;
	printf("a=%d, b=%d\n", a, b);
	c = a;
	a = b;
	b = c;
	printf("a=%d,b=%d\n", a, b);
	return 0;
}



最新回复(0)
/jishuOVEfzhXhIF3IKwdFK_2Bd1Ytlz5q2eLyIyT_2FTplV9XoAE_3D4449832
8 简首页