(1) English is: or, for example: a or b.
(2)C language: ||, for example: A.
(3) common usage:/,for example: a/b.
(4) Symbols in mathematical logic conjunctions are expressed as: ∨ Example: P or Q is marked as P ∨ Q..
The or operator is the equivalent text of ||.
The operands of logical OR operators need not be of the same type, but they must be of integer or pointer type. Operands are usually relational or equality expressions.
The first operand will be completely evaluated, and all side effects will be completed before continuing to evaluate the logical OR expression.
Extended data:
Logical operation is a logical deduction method of digital symbolization, including union, intersection and subtraction. This logic operation method is used in graphics processing operation, which makes the simple basic graphics combination produce new shapes, and develops from two-dimensional logic operation to three-dimensional logic operation.
Because of Boolean's special contribution to symbolic logic operation, many computer languages call logic operation Boolean operation and its result Boolean value.
If one or both operands are true, the logical OR operator (||) returns the boolean value true; Otherwise return false. Operands are implicitly converted to bool before calculation, and the result is bool. Logical OR has a correlation from left to right.
The or operator is the equivalent text of ||.
When the first operand evaluates to false (0), the second operand is evaluated. When the logical OR expression is true, this will eliminate the unnecessary calculation of the second operand.
In determining one thing, as long as one condition can be met, the result will appear; Only when all the conditions are not met, the result does not appear. This causal relationship is called "logical OR".
The symbol of "or" in mathematical logic conjunctions is: ∨ Example: P or Q is marked as P ∨ Q.
The "or" in the news means that something is possible, usually from anonymous or well-informed people.
References:
Baidu encyclopedia-or
References:
Baidu Encyclopedia-Logical OR