您的位置:首页 > 编程语言 > Lua

考试酷解析——A14_Precedence and Order of Evaluation-3

2020-06-01 05:06 232 查看

解析

第七题:

[code]//What is the output of this C code?
#include <stdio.h>
void main()
{
double b = 5 % 3 & 4 + 5 * 6;
printf("%lf", b);
}

运算符的优先级是*=%>+>&,即是求2&34,得到2.0000

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐