95.6k views
0 votes
The AND operator is written as two ____.

a.
asterisks

b.
equal signs

c.
ampersands

d.
plus signs

1 Answer

5 votes

Answer:

ampersands

Step-by-step explanation:

In the programming the AND operator is denoted as '&&' , two ampersands.

it is used to between two conditions and give Boolean result.

It has four possible result:

first condition TRUE second TRUE, result TRUE

first condition TRUE second FALSE, result FALSE

first condition FALSE second TRUE, result FALSE

first condition FALSE second FALSE , result FALSE

For example:

(5 > 0 && 7 > 4): it gives the result TRUE because both are true.

5 > 8 && 7 > 4): it gives the result FALSE because one is false.

User JGoodgive
by
6.0k points