Question: what are logical operators c++?
Answer: Logical operators ( !, &&, || ) The operator ! is the C++ operator for the Boolean operation NOT. It has only one operand, to its right, and inverts it, producing false if its operand is true , and true if its operand is false . Basically, it returns the opposite Boolean value of evaluating its operand.