Study on Reducing Unexpected Result of Postfix Increment or Decrement Operator

Hehu Zhang · Journal of Zhongyuan University of Technology · 2015

When developing programs with VC 6.0,if postfix increment or decrement operator is used in actual argument expression of function,the running result of release configuration may be unexpectedly different from that of debug configuration.Based on analyzing the conditions under which this kind of problem will appear,chosen Add-in to find this kind of problem for notifying the programmer to modify its program,discussed some special questions in practice,and given the main steps in developing the Add-in.The Add-in can be used to analyze all source files and header files of the active project in VC 6.0to determine if there is this kind of problems,thus the probability of producing unexpected result is reduced.

Read the paper · More papers on PaperTik