#include <stdio.h> //数据交换 int swap(int *x,int *y){ int temp; temp=*x; *x=*y; *y=temp; } int main(){ int a = 10, b = 20; swap(&a,&b); printf("%d %d",a ,b); }
❤️有则改之,无则加勉。如有错误、建议、疑问,评论或联系飞沙QQ:2602629646❤️本文来自作者:MrFlySand,转载请注明原文链接:https://www.cnblogs.com/MrFlySand/p/13537451.html