09-12-2016, 09:26 AM
Rule 2.2 applies to each operator in an expression, not the expression as a whole.
As was mentioned in the 2nd post, the "*" operation is unused and constitues dead code. The expression "*p++;" could be replaced by "p++;" with no change in behaviour of the program.
As was mentioned in the 2nd post, the "*" operation is unused and constitues dead code. The expression "*p++;" could be replaced by "p++;" with no change in behaviour of the program.
Posted by and on behalf of the MISRA C Working Group