(C++) logic error
February 24, 2017 · View on GitHub
(C++) logic error
A logic error is ...
Advice
- Placing a semicolon immediately after the right parenthesis after the condition in an if statement is often a logic error, although not a syntax error [1]
References
- Paul Deitel, Harvey Deitel. C++11 for programmers (2nd edition). 2014. ISBN: 978-0-13-343985-4. Chapter 2.6, Common Programming Error 2.4. page 34: 'Placing a semicolon immediately after the right parenthesis after the condition in an if statement is often a logic error (although not a syntax error)'