当前位置:网站首页>Two numbers replace each other
Two numbers replace each other
2022-07-05 00:13:00 【sunyin. liu】
#include <stdio.h>
void swap(int a, int b);
int main(){
int a = 5;
int b = 6;
// printf("a=%d,b=%d\n",a,b);
printf("a=%d,b=%d\n",a,b);
swap(a,b);
return 0;
}
void swap(int a,int b){
a = a ^ b;
b = a ^ b;
a = a ^ b;
printf("a=%d,b=%d\n",a,b);
}
边栏推荐
- [论文阅读] CarveMix: A Simple Data Augmentation Method for Brain Lesion Segmentation
- How to reduce the stock account Commission and stock speculation commission? Is it safe to open an online account
- P4408 [NOI2003] 逃学的小孩(树的直径)
- OpenHarmony资源管理详解
- Upload avatar on uniapp
- URLs and URIs
- Using the uniapp rich text editor
- [IELTS reading] Wang Xiwei reads P4 (matching2 paragraph information matching question [difficult])
- abc 258 G - Triangle(bitset)
- GDB常用命令
猜你喜欢

微服务(Microservice)那点事儿

JS how to realize array to tree
![[kotlin] the third day](/img/c4/1bf1b00c4a1dda920ad3bb178ac0f9.png)
[kotlin] the third day

ORB(Oriented FAST and Rotated BRIEF)

Hash table, hash function, bloom filter, consistency hash

Parsing of XML

2022.07.03(LC_6111_统计放置房子的方式数)

Fast analysis -- easy to use intranet security software
![[论文阅读] CarveMix: A Simple Data Augmentation Method for Brain Lesion Segmentation](/img/41/eb790e7419a158e985fa503bd7dc17.png)
[论文阅读] CarveMix: A Simple Data Augmentation Method for Brain Lesion Segmentation

"Xiaodeng" domain password policy enhancer in operation and maintenance
随机推荐
Application of multi loop instrument in base station "switching to direct"
业务场景功能的继续修改
If you open an account of Huatai Securities by stock speculation, is it safe to open an account online?
[IELTS reading] Wang Xiwei reading P3 (heading)
Build your own minecraft server with fast parsing
PermissionError: [Errno 13] Permission denied: ‘data. csv‘
端口映射和端口转发区别是什么
人脸识别5- insight-face-paddle-代码实战笔记
Paddleocr tutorial
他做国外LEAD,用了一年时间,把所有房贷都还清了
[IELTS reading] Wang Xiwei reads P4 (matching2 paragraph information matching question [difficult])
lambda表达式
P3304 [SDOI2013]直径(树的直径)
Basic points of the game setup of the points mall
【北京大学】Tensorflow2.0-1-开篇
Mit-6.824-lab4b-2022 (10000 word idea explanation - code construction)
IT转测试岗,从迷茫到坚定我究竟付出了什么?
如何将自己的代码作品快速存证,已更好的保护自己劳动成果
Pytoch --- use pytoch to realize linknet for semantic segmentation
Cross domain request