Problems About Rearrangement for Expressions in C
来源:互联网 发布:淘宝的血糖仪准不准 编辑:程序博客网 时间:2024/04/30 13:34
一些数学法则(如:结合律,分配律等)在C语言表达式中通常是不适用的。
比如下面的代码段:
由于舍入与精度的问题,上面的表达式通常是不相等的。
又如:
与下面的表达式也是不等的:
假设int的表示范围是[-32768, +32767],则如果a = -32754, b = -15,则第2个表达式会溢出,而原表达式不会。
- Problems About Rearrangement for Expressions in C
- Some essential problems in C
- Tips for solving CSS problems in IE7
- Some Expressions about Heart
- English expressions about clothes
- 【Contest】Problems about probablity
- About Error handling in C
- MathLibrary , about in C Library
- Problems and Projections in CS for the Next 49 Years
- Five levels of problems that might appear in books about mathematics
- some cases about "const" in C Program
- about the character string in C language
- A Quiz About Integers in C
- About LONG INT SHORT in C
- About sort and qsort in c
- A Quiz About Integers in C
- about pack and align for C/C++
- Regular Expressions in Java
- 二十多岁的青年必须尝试的30件事
- 打造一个Hello World OSGi Web应用程序
- jxl 去除 最后 空白页 所有 工作表 打印 设置
- 庚寅端午返乡有感做
- 部署并运行你的OSGi Web应用程序
- Problems About Rearrangement for Expressions in C
- USB硬件键盘鼠标控制器V3.1 刷机功能调试成功
- OBD 2 code scanner
- 远程连接Ubuntu
- 多层印制板设计基本要领
- 今天高考
- ubuntu 9.10 更新grub 启动菜单
- 关于绘图软件中参考线及网格对齐的改进
- 为什么你应该写博客(转载)