Quantcast
Channel: evil – How Not To Code
Viewing all articles
Browse latest Browse all 10

Logical Expressions in C/C++. Mistakes Made by Professionals

$
0
0
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.

Viewing all articles
Browse latest Browse all 10

Trending Articles