Ace Learns Logo Ace Learns
  • Home
  • History
  • Geography
  • Astronomy
  • Physics
  • Chemistry
  • Biology
  • Agriculture
  • Sports
  • Computer Science
  • Articles
  • Contact Us
MCQ Categories
  • Articles
  • Home
  • Contact Us
  • Home
  • »
  • Computer Science
  • »
  • Programming in C
  • »
  • Operators in C
  • »
  • What does the ! operator do in C?

Programming in C

unfold_more
  • double_arrow Data Types in C
  • double_arrow Operators in C

What does the ! operator do in C?

The ! operator in C is the logical NOT operator. It is used to reverse the logical value of its operand. If the operand is true (non-zero), the ! operator makes it false (0), and if the operand is false (0), the ! operator makes it true (1). It is used for negation in logical expressions.

Related Questions

  • What is the result of the following C program?
  • What is the output of the expression 10 << 2 in C?
  • What will be the output of the following C program?
  • What is the output of the following code?
  • What is the value of x after the following code runs?

Quick Links

  • Computer Science
    • chevron_right Databases
    • chevron_right Analysis and Design of Algorithms
    • chevron_right Operating System
    • chevron_right Language Processors
  • Physics
    • chevron_right Electricity and Magnetism
    • chevron_right Geometrical Optics
    • chevron_right Dynamics
    • chevron_right Thermodynamics
  • Biology
    • chevron_right Cell Biology
    • chevron_right The Human Body System
    • chevron_right Organs of the Human Body
    • chevron_right Genetics
  • Geography
    • chevron_right Oceanography
    • chevron_right Geopolitics and Global Issues
    • chevron_right Regional Geography
    • chevron_right Geomorphology

Ace Learns Logo Ace Learns © 2025 Ace Learns. All rights reserved.
  • Contact Us
  • Copyright
  • Privacy Policy