Chapter 3: Problem 14
What is a compound Boolean expression?
Short Answer
Expert verified
Answer: A compound Boolean expression is a logical expression that combines two or more simple Boolean expressions using logical operators such as AND (&& or &), OR (|| or |), and NOT (! or ~). These expressions return a result of either true or false depending on the input values and the logical operators used. To create a compound Boolean expression, you can combine simple Boolean expressions using these logical operators. For example, a compound expression could look like (A && B) || C, where A, B, and C are simple Boolean expressions. This expression evaluates to true if both A and B are true or if C is true.