2017inter面食德提姆
来源:互联网 发布:可视化数据分析工具 编辑:程序博客网 时间:2024/04/27 07:57
360面试题
void foo(void)
{unsigned int a = 6;
int b = -20;
(a+b > 6) ? puts("> 6") : puts(" <= 6");
}
这个问题是在测试你是否懂得C语言中的整数自动转换原则,我发现有些开发者懂得极少这些东西。不管如何,这无符号整型问题的答案是输出是 ">6"。原因是当表达式中存在有符号类型和无符号类型时所有的操作数都自动转换为无符号类型。因此-20变成了一个非常大的正整数,所以该表达式 计算出的结果大于6。
0 0
- 2017inter面食德提姆
- 山西面食甲天下
- ms-inter
- 2004.09.11,Sat - 太原面食节纪实
- 鸡蛋配上面食吃更合理
- 中华瑰宝之山西人的面食
- 湖北天门特色面食麻酱烧饼盛亿隆
- Inter SIU520 Log阅读
- inter portlet communication library
- Inter 汇编指令手册
- Inter-process Communication:Pipes
- Inter-Process Communication IPC
- questions from inter
- Inter-process Communication (IPC)
- inter && srb 笔记
- H264 inter prediction overview
- H264 Inter prediction examples
- Inter process communication
- “我插入MongoDB的数据都去哪了?”——明明抓取到了数据,为啥不见了?
- js四位验证码,以字母数字组成,不能以数字开头
- XML语言基础2 DTD
- WPF -- 相同自适应大小的控件
- C语言学习每日进步一点点
- 2017inter面食德提姆
- 连接时触发配对
- 计算机网络学习总结1
- 浅谈shared_ptr与循环引用问题
- 利用perl脚本实现跨服务器的数据转移
- 专题图输出JPG文件操作说明
- WPF -- 叠加多个 Style 的效果
- 在linux中执行可执行文件的指令
- 机智云Gokit V2.1 使用CubeMX应用UCOS