首页 | 本学科首页   官方微博 | 高级检索  
     

C/C++运算求值顺序的缺陷分析
引用本文:吴元斌.C/C++运算求值顺序的缺陷分析[J].现代计算机,2003(7):60-62.
作者姓名:吴元斌
作者单位:重庆三峡学院计算机科学系 重庆万州
摘    要:本文以实例程序及其在3种不同编译器上的不同运行结果,表明C/C 运算求值顺序存在缺陷。并利用3种命令行编译器生成实例程序对应的汇编语言程序,深入分析了各编译器在运算求值顺序实现中的具体差异,这对准确、高效地运用C/C 是有益的。

关 键 词:C语言  C++语言  运算求值顺序  缺陷分析  编译器
修稿时间:2003年3月12日

Pitfalls of Operator's Evaluation Sequence in C/C++ Operators
WU Yuan-bin.Pitfalls of Operator''''s Evaluation Sequence in C/C++ Operators[J].Modem Computer,2003(7):60-62.
Authors:WU Yuan-bin
Abstract:This essay gives a program and its different results in three compliers, proves pitfalls of evaluation sequence in C/C++ operators. And it uses three command compiler produce assembly language programs corresponding source program. At last it analyzes the differences of evaluation sequence in compilers.
Keywords:C/C++  Operator  Evaluation Sequence  Compiler
本文献已被 CNKI 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号