<实验结论>
#include <stdio.h> #include <stdlib.h> int main() { int a, b, t; a = 3; b = 4; printf("a = %d, b = %d\n", a, b); t = a; a = b; b = t; printf("a = %d, b = %d\n", a, b); system("pause"); return 0; }
** line11-13功能:
将a和b的值进行置换。
<实验总结>
将变量值进行置换代码写法
eg.
t = a; a = b; b = t;标签:1task3,int,置换,实验,printf,include From: https://www.cnblogs.com/550w/p/17172631.html