!Condition // returns true if the conditions is false // else returns false
Below is an example to demonstrate ! operator:
Condition yielded True Condition yielded False
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.
- Code Optimization Technique (logical AND and logical OR)
- Order of operands for logical operators
- What are the differences between bitwise and logical AND operators in C/C++?
- Operators in C | Set 2 (Relational and Logical Operators)
- Arrow operator -> in C/C++ with Examples
- Modulo Operator (%) in C/C++ with Examples
- Operands for sizeof operator
- Result of comma operator as l-value in C and C++
- C/C++ Ternary Operator - Some Interesting Observations
- A comma operator question
- To find sum of two numbers without using any operator
- When should we write our own assignment operator in C++?
- Default Assignment Operator and References
- Operator Precedence and Associativity in C
- Scope Resolution Operator Versus this pointer in C++?
- Set a variable without using Arithmetic, Relational or Conditional Operator
- sizeof operator in C
- C++ | Operator Overloading | Question 10
- C++ | Operator Overloading | Question 2
- C++ | Operator Overloading | Question 3
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.