+ 5

What is boolean expression?

18th Oct 2018, 3:17 PM
Âňãńđhü _Š
Âňãńđhü _Š - avatar
4 ответов
+ 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.
18th Oct 2018, 4:19 PM
John Wells
John Wells - avatar
+ 3
thank you sir
25th Oct 2018, 10:23 AM
Âňãńđhü _Š
Âňãńđhü _Š - avatar
+ 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.😁
30th Oct 2018, 10:30 AM
Vishnu
Vishnu - avatar
- 1
wut
3rd Nov 2018, 5:08 PM
Madison