+ 5
What is boolean expression?
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.
+ 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
wut