August 2024
Intermediate to advanced
792 pages
23h 9m
English

Now that you know how to compile binary operators, you’re going to add a whole mess of them (plus one more unary operator). In this chapter, you’ll add three logical operators: NOT (!), AND (&&), and OR (||). You’ll also add the relational operators: <, >, ==, and so on. Each of these operators tests some condition, resulting in a value of 1 if that condition is true and 0 if it’s false.
The && and || operators differ from the binary operators we’ve seen so far because they short-circuit
Read now
Unlock full access