exclamation mark in c

Exclamation Mark in C

In the C programming language, the exclamation mark (!) is used as the logical NOT operator. It is used to reverse the logical state of its operand. Here's a brief explanation of its usage:

  1. Logical NOT Operator (!):
  2. The exclamation mark (!) is used as the logical NOT operator in C. It is a unary operator, meaning it operates on only one operand.
  3. When applied to an expression, the logical NOT operator reverses the logical state of the expression. If the expression is true, the logical NOT operator makes it false, and vice versa.

That's the basic usage of the exclamation mark as the logical NOT operator in C. If you have any specific questions about its usage or examples, feel free to ask!