会员
周边
新闻
博问
AI培训
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
熏五空--嵌入式
博客园
首页
新随笔
联系
订阅
管理
2019年10月20日
面试题————不使用逻辑语句两个数值比较大小
摘要: 很6,不知道啥原理,这大概就是数学的魅力吧。 #include <stdio.h>#include <string.h>#include<math.h> int main(){ int a=10,b=18; int sun; sun=(a+b+abs(a-b))/2;// (两个数之和+两个数的差绝
阅读全文
posted @ 2019-10-20 20:31 熏五空--嵌入式
阅读(165)
评论(0)
推荐(0)
编辑
公告