for example( cthe whole expression is true only if both expressions are truei if is greater than and table truth table of logical or | table truth table of logical not logical or (||logical or returns false value if both the operands are false otherwise it returns true value the truth table of logical or operator is given in table for example( cthe whole expression is true if either is greater than or is greater than or is greater than both and logical not (!the logical not operator takes single expression and produces zero if the expression evaluates to non-zero value and produces if the expression produces zero the truth table of logical not operator is given in table for exampleint bb !anow the value of this is because value of ! the value of ! is assigned to bhence the result unary operators unary operators act on single operands language supports three unary operators they are unary minusincrementand decrement operators unary minus (-unary minus operator negates the value of its operand for exampleif number is positive then it becomes negative when preceded with unary minus operator similarlyif the number is negativeit becomes positive after applying the unary minus operator for exampleint ab -( )the result of this expression is - because variable has positive value after applying unary minus operator (-on the operand bthe value becomes - which indicates it has negative value increment operator (++and decrement operator (-the increment operator is unary operator that increases the value of its operand by similarlythe decrement operator decreases the value of its operand by for example- is equivalent to writing the increment/decrement operators have two variantsprefix and postfix in prefix expression (++ or - )the operator is applied before the operand while in postfix expression ( +or --)the operator is applied after the operand an important point to note about unary increment and decrement operators is that ++ is not same as +similarly- is not the same as xalthoughx+and ++ both increment the value of by in the former casethe value of is returned before it is incremented whereas in the latter casethe value of is returned after it is incremented for example