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

C语言++表达式的求解探讨
引用本文:原民民.C语言++表达式的求解探讨[J].数字社区&智能家居,2007,1(6):1675-1676.
作者姓名:原民民
作者单位:山西水利职业技术学院 山西运城044004
摘    要:C语言中的++运算符是一种特殊的运算符,其特殊性在于一个运算符包含两个操作,不同的编译器对这两个操作在复合表达式中的处理机制不同,而同一个编译器对其在程序中的不同位置也有不同的处理。教材中仅仅对++运算符作了最简单的介绍,并没有对++运算的左连接和右连接同时参与运算时的处理规则作介绍,本文对++运算在不同情况下的求解进行了深入研究,得出对++运算符的运算要根据一定的程序环境和编译器环境而定。

关 键 词:C语言  表达式  ++运算符
文章编号:1009-3044(2007)06-11675-02
修稿时间:2007年2月9日

The Discussion on Finding the Solution of ++ Expression in the C Programming Language
YUAN Min-min.The Discussion on Finding the Solution of ++ Expression in the C Programming Language[J].Digital Community & Smart Home,2007,1(6):1675-1676.
Authors:YUAN Min-min
Abstract:The ++ operation is a kind of special operation in the C Programming Language, because one operator includes two operations, the different compiler has not the same principle to deal with the two operations of the ++ expression, and the same kind of compiler has different principle to resovle that when it is in the different place in the C Programming Language. The base step of sovling one ++ expression is only introduced simply in the book, but none of books and interrelated references is introduced about sovling the form of i++ and ++i when they appear in one expression in the same time. The paper deeply studies the principle of sovling the ++ expression in the different environment, and I find out that the ++ expression can be resoved correctly denpending on different place in the C programme and different C compiler.
Keywords:C Programming Language  expression  operator
本文献已被 CNKI 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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