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

+5

What is boolean expression?

c

10/18/2018 3:17:40 PM

Âňãńđhü _Š

5 Answers

New Answer

+9

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.

+3

thank you sir

+3

 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.😁

-1