不使用临时变量交换数值
来源:互联网 发布:mastercam新手编程 编辑:程序博客网 时间:2024/05/01 03:27
#include<stdio.h>
int main(int argc,char *argv[])
{
int a,b;
printf("input two numbers:\n");
scanf("%d %d",&a,&b);
a=a^b;
b=a^b;
a=a^b;
printf("a:%d\nb:%d\n",a,b);
return 0;
}
int main(int argc,char *argv[])
{
int a,b;
printf("input two numbers:\n");
scanf("%d %d",&a,&b);
a=a^b;
b=a^b;
a=a^b;
printf("a:%d\nb:%d\n",a,b);
return 0;
}
0 0
- 不使用临时变量交换数值
- 不使用临时变量交换数值
- 不使用临时变量交换两个整数
- 不使用临时变量 交换两个数
- 不使用临时变量交换两个数
- 不使用临时变量交换两个变量的值
- 不使用临时变量的变量交换算法
- 实现变量交换(不使用临时变量)
- 关于两个变量不使用临时变量进行值交换
- 不使用临时变量交换两个变量的值
- 不使用中间变量交换两个数值变量的值
- 不使用任何临时变量进行2个数的交换
- 不使用临时变量 交换两个数的值
- 不使用临时变量而交换两个整形数
- 交换两个数不使用临时变量的陷阱
- 不使用临时变量,实现两个变量值的交换
- C语言 不使用临时变量交换两个数
- 不使用临时变量交换两个数的值
- net use命令详解
- 图解WebSphere 8.5 安装
- 零基础学习安卓【笔记 02 Activity学习】
- AtomicLong的incrementAndGet()
- Handler,MessageQueue,Looper解析
- 不使用临时变量交换数值
- linux中getopts与shift的冲突之处
- linux下如何安装配置JDK
- coredata&加密
- weblogic集群下,程序获取客户端IP、获取用户IP的时,节点需要首先启用WL-Proxy-Client-IP
- Android客户端优化策略
- 安卓笔记
- Qt debug模式和release模式的区别
- 终极Flexbox属性查询列表