Home >Backend Development >C#.Net Tutorial >How to express 'or' in C language?
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.
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!