Skip to content

Latest commit

 

History

History
12 lines (7 loc) · 455 Bytes

logical.md

File metadata and controls

12 lines (7 loc) · 455 Bytes

Logical Operations in C

C also provides a set of logical operations: ||, &&, ~, which correspond to the OR, AND, NOT.

These can easily be confused with the bit-level operations, but their behavior is quite different.

The logical operations return either 1 or 0 in C language, indicating a result of either true or false respectively.

Here are some practice: