标签:std int 指针 printf span nbsp print += bsp
#include<stdio.h> void swap(int* a,int *b) { /* int temp = *a; *a = * b; *b = temp; */ *a += *b; *b = *a - *b; *a = *a - *b; } int main() { int a = 10; int b = 20; swap(&a,&b); printf("a = %d,b = %d\n",a,b); }
标签:std int 指针 printf span nbsp print += bsp
原文地址:https://www.cnblogs.com/wanghao-boke/p/11020404.html