You are here

Truth Tables

19 January, 2016 - 11:41

A common way to show logical relationships is in truth tables.

Table 12.2 Logical and (&&)

x

y

x && y

false

false

false

false

true

false

true

false

false

true

true

true

Table 12.3 Logical or (||)

x

y

x || y

false

false

false

false

true

true

true

false

true

true

true

true

Table 12.4 Logical not (!)

x

!x

false

true

true

false