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 output of the following code?
  • How many operands does the ternary conditional operator require in C?
  • Which operator in C is used to access the address of a variable?
  • What will be the output of the following C program?
  • What is the output of the expression 10 << 2 in C?

Quick Links

  • Chemistry
    • chevron_right Acids Bases and Salts
    • chevron_right Electronic Structure and Periodicity
    • chevron_right Matter and Measurements
    • chevron_right Chemical Bonding
  • Sports
    • chevron_right Olympics
    • chevron_right Common Wealth Games
    • chevron_right Cricket
    • chevron_right Asian Games
  • Computer Science
    • chevron_right Analysis and Design of Algorithms
    • chevron_right Python Programming Language
    • chevron_right Operating System
    • chevron_right Computer Networks
  • Physics
    • chevron_right Dynamics
    • chevron_right Geometrical Optics
    • chevron_right Thermodynamics
    • chevron_right Waves and Optics

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