92.6k views
5 votes
The _____ function is a logical function that returns a TRUE value if any of the logical conditions are true and a FALSE value if all the logical conditions are FALSE.

1 Answer

3 votes

Answer:

OR

Step-by-step explanation:

The logical function is used to combine one or more logical condition their are many types of logical condition that are given below

  1. Logical OR
  2. Logical And
  3. Logical Not

The Logical OR Function returns true when any of the condition is true and it returns false when both the condition are false

Following are the example in C programming language

In the programming language it is represented by ||

a=90;

b=98;

c=187;

int t=(c< b || b>a)

it returns true because one condition is true i.e b>a .

The truth table of OR logical function is given below

A B Result

True True True

True False False

False TRUE TRUE

FALSE FALSE FALSE

User Bolinfest
by
7.8k points