摘要
在C语言的众多运算符中,最难理解、使用时最易得到模棱两可结果的是自增、自减运算符。就这两个运算符在程序中的具体使用进行了详细的分析,不管是自增还是自减,前置运算符是"先变后用",后置运算符是"先用后变"。但是C语言的灵活性也容易使程序费解,不同的编译环境可能导致处理结果不同。
One of the characteristics of C-language is that it is full of operators and easy in operation. Among so many operators,increment and decrement operators are the most difficult to understand and liable to get ambiguous results in application. Thus,the application of the two operators in the process is analyzed in details so that the beginners may correctly use increment and decrement operators.
出处
《武汉工程职业技术学院学报》
2010年第3期47-49,共3页
Journal of Wuhan Engineering Institute
关键词
C语言
自增运算符
自减运算符
C-language
increment operator
decrement operator