Home  >  Article  >  What are the three basic operations of computer logic operations?

What are the three basic operations of computer logic operations?

尚
Original
2020-03-20 10:25:1025801browse

What are the three basic operations of computer logic operations?

Three basic operations of computer logic operations:

1. Logical AND (&&)

When the lvalue and rvalue are both true, Return true, if both sides are false or one of the values ​​on both sides is fasle, then return false

2. Logical OR (||)

Return the first true value found , if both are false, the last value is returned.

3. Logical NOT (!)

Its function is to negate the Boolean value of the number.

The above is the detailed content of What are the three basic operations of computer logic operations?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn