What is boolean expression? | Sololearn: Learn to code for FREE!


What is boolean expression?


10/18/2018 3:17:40 PM

Âňãńđhü _Š

5 Answers

New Answer


num >= 5 is a boolean expression which returns a non-zero value (i.e. true), if num's value is 5 or greater. Otherwise, it returns zero (i.e. false). Every expression used in an if or while statement is treated as a boolean expression even 'if (5)' is valid and true. The middle expression of the for statement is also treated as a boolean.


thank you sir


 Boolean expression is a value that is either TRUE or FALSE. A boolean operator or logical operator consists of operators such as AND, OR, NOT, and are used with conditional statements in programming.😁