๐Ÿ’ปap computer science a review

Key Term: ! (NOT) operator

Written by the Fiveable Content Team โ€ข Last updated September 2025
Verified for the 2026 exam
Verified for the 2026 examโ€ขWritten by the Fiveable Content Team โ€ข Last updated September 2025

Definition

Definition: The ! (NOT) operator is a unary operator that negates the value of a boolean expression. It returns true if the expression is false, and false if the expression is true.

"Key Term: ! (NOT) operator" also found in: