当前位置:网站首页>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);
}
边栏推荐
- Life is changeable, and the large intestine covers the small intestine. This time, I can really go home to see my daughter-in-law...
- Jar batch management gadget
- Go step on the pit - no required module provides package: go mod file not found in current directory or any parent
- OpenHarmony资源管理详解
- Summary of week 22-07-02
- 机器人强化学习——Learning Synergies between Pushing and Grasping with Self-supervised DRL (2018)
- P4408 [noi2003] truant children (tree diameter)
- 他做国外LEAD,用了一年时间,把所有房贷都还清了
- 巩固表达式C# 案例简单变量运算
- 【selenium自动化】常用注解
猜你喜欢

ORB(Oriented FAST and Rotated BRIEF)
![[IELTS reading] Wang Xiwei reads P4 (matching2 paragraph information matching question [difficult])](/img/83/63296108b47eda37c19b9ff9deb5ec.png)
[IELTS reading] Wang Xiwei reads P4 (matching2 paragraph information matching question [difficult])

Parsing of XML

公司要上监控,Zabbix 和 Prometheus 怎么选?这么选准没错!

How many triangles are there in the golden K-line diagram?

人脸识别5- insight-face-paddle-代码实战笔记
![[IELTS reading] Wang Xiwei reading P3 (heading)](/img/19/40564f2afc18fe3e34f218b7b44681.png)
[IELTS reading] Wang Xiwei reading P3 (heading)

He worked as a foreign lead and paid off all the housing loans in a year

企业公司项目开发好一部分基础功能,重要的事保存到线上第一a

【selenium自动化】常用注解
随机推荐
Summary of week 22-07-02
Some basic functions of enterprise projects are developed, and important things are saved to online first a
Design of emergency lighting evacuation indication system for urban rail transit station
How many triangles are there in the golden K-line diagram?
如何有效对直流列头柜进行监测
【雅思阅读】王希伟阅读P4(matching1)
业务场景功能的继续修改
[IELTS reading] Wang Xiwei reading P4 (matching1)
Acrel-EMS综合能效平台在校园建设的意义
Business implementation - the log is written to the same row of data
Application of fire fighting system based on 3D GIS platform
Fs8b711s14 electric wine bottle opener MCU IC scheme development special integrated IC
业务实现-日志写到同一个行数据里面
Continuous modification of business scenario functions
The waterfall flow layout demo2 (method 2) used by the uniapp wechat applet (copy and paste can be used without other processing)
人生无常,大肠包小肠, 这次真的可以回家看媳妇去了。。。
Fast analysis -- easy to use intranet security software
How to use fast parsing to make IOT cloud platform
GDB常用命令
P4281 [AHOI2008]紧急集合 / 聚会(LCA)