首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

这样会有BUG?该如何解决

2012-03-22 
这样会有BUG?C/C++ code#includestdio.h void temp(int* a,int* b) main(){int a3,b4temp(&a,&b)pr

这样会有BUG?

C/C++ code
#include<stdio.h> void temp(int* a,int* b); main(){int a=3,b=4;temp(&a,&b);printf("%d %d",a,b); } void temp(int* a,int* b){*a=(*a)^(*b);*b=(*a)^(*b);*a=(*a)^(*b);}


[解决办法]
看不出有什么问题

热点排行