A logic error is ...
- 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]
- 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)'