5 Answers
New Answernum >= 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.
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.😁
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message