C++ Boolean Expressions
A Boolean expression could have shows that is in C++ expression that returns a boolean value: 1
(true) or 0
(false).
You can use a comparison operator for example: the greater than (>
) operator, the equal to (==
) operator as shown below.
Example1: Use the greater than (>
) operator, You can be check greater value.
Output :
Example2 : Use the equal to (==
) operator, You can check given two value equal or not.
Output :