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 expression 10 << 2 in C?
  • What is the result of the following C program?
  • 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 following code?

Quick Links

  • Computer Science
    • chevron_right Databases
    • chevron_right Programming in C
    • chevron_right Computer Networks
    • chevron_right Computer Organization
  • Agriculture
    • chevron_right Processes and Factors of Soil Formation
    • chevron_right Pest and Disease Classification
    • chevron_right Major Crops and Classification
    • chevron_right Mutations and Crop Improvement
  • Chemistry
    • chevron_right Chemical Bonding
    • chevron_right States of Matter and Solutions
    • chevron_right Matter and Measurements
    • chevron_right Acids Bases and Salts
  • Astronomy
    • chevron_right Space Exploration
    • chevron_right Stars
    • chevron_right High-Energy Astrophysics
    • chevron_right Solar system

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