18
Logical Expressions in C/C++. Mistakes Made by Professionals In programming, a logical expression is a language construct that is evaluated as true or false. Many books that teach programming "from scratch" discuss possible operations on logical expressions familiar to every beginner. In this article, I won't be talking about the AND operator having higher precedence than OR. Instead, I will talk about common mistakes that programmers make in simple conditional expressions consisting of no more than three operators, and show how you can check your code using truth tables. Mistakes described here are the ones made by the developers of such well-known projects as FreeBSD, Microsoft ChakraCore, Mozilla Thunderbird, LibreOffice, and many others.


Facebook Comments

Comments

  1. gainfromhere 265 days ago Permalink

    Very informative !

Who Upvoted this Story

Who Downvoted this Story

Like us on Facebook
Follow us on Twitter
Recommend us on Google Plus
Subscribe me on RSS