VOOZH about

URL: https://www.geeksforgeeks.org/c/logical-not-operator-in-c-with-examples/

⇱ Logical Not ! operator in C with Examples - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Logical Not ! operator in C with Examples

Last Updated : 12 Jul, 2025
! is a type of Logical Operator and is read as "NOT" or "Logical NOT". This operator is used to perform "logical NOT" operation, i.e. the function similar to Inverter gate in digital electronics. 👁 Image
Syntax:
!Condition

// returns true if the conditions is false
// else returns false
Below is an example to demonstrate ! operator: Example:
Output:
Condition yielded True
Condition yielded False
Comment
Article Tags: