How to express 'or' in C language?

Release: 2020-03-02 10:11:10
Original
80804 people have browsed it

The symbols in C language are divided into 10 categories: arithmetic operators, relational operators, logical operators, bit operation operators, assignment operators, conditional operators, comma operators, pointer operators, and finding the number of bytes. operators and special operators.

How to express 'or' in C language?

Let's take a look at how "or" is expressed in C language:

Recommended: "c Language Tutorial

In C language, there are two types of "or":

One is logical OR, represented by two vertical lines: ||

The other is bitwise OR , represented by a vertical line: |

The first one is used for logical operations

The second one is used for bit operations

For more programming related content, please pay attention to php Chinese websiteIntroduction to Programming column!

The above is the detailed content of How to express 'or' in C language?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template