C – Logical NOT

C – Logical NOT 2017-06-12T10:05:38+00:00

Logical NOT

Example :

Suppose that a and b are integer variables whose values are 10 and 3, respectively. Then the result of arithmetic expression !(a>b) is False.

 

Output :

!0 = 1

!1 = 0

Enter first number

10

Enter second number

3

(10>3) is 1

!(10>3) is 0

Prev Next