C – Logical AND

C – Logical AND 2017-07-19T18:04:22+00:00

Logical AND :

C – LOGICAL AND EXAMPLE PROGRAM :

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

Output :

1 = True    0 = False

0  && 0 = 0

0  && 1 = 0

1  && 0 = 0

1 && 1 = 1

Enter first number

10

Enter second number

3

(10>3)is 1

(3>10) is 0

(10>3)&& (3>10)= 0

Prev Next