Skip to content

Files

Latest commit

 

History

History
11 lines (6 loc) · 350 Bytes

clarifyStatement.md

File metadata and controls

11 lines (6 loc) · 350 Bytes

Pattern: Unclear statement

Issue: -

Description

A statement like *A++; might not do what you intended. Postfix operator++ is executed before operator*. Thus, the dereference is meaningless. Did you intend to write (*A)++;?

Further Reading