Logical NOT Operator in C Programming

preview_player
Показать описание
Logical NOT (!) operator in C

Logical NOT is denoted by exclamatory characters (!), it is used to check the opposite result of any given test condition.

Syntax of Logical NOT operator:

!(condition)

// returns true if the conditions is false
// else returns false

i.e. If any condition's result is non-zero (true), it returns 0 (false) and if any condition's result is 0(false) it returns 1 (true).
Рекомендации по теме