当前位置:网站首页>C language operators
C language operators
2022-06-30 07:30:00 【My deep blue】
C Language operators
| Arithmetic operator | function | priority |
|---|---|---|
| ++ | Self increasing | 2 |
| – | Self reduction | 2 |
| *、/ | Multiplication and division | 3 |
| % | Seeking remainder / modulus | 3 |
| +、- | Addition and subtraction | 4 |
| Assignment operator | function | priority |
|---|---|---|
| = | assignment | 14 |
| += | Add and assign | 14 |
| -= | Value after subtraction | 14 |
| *= | Multiply and assign | 14 |
| /= | Assign value after division | 14 |
| %= | Assign a value after taking the module | 14 |
| Relational operator | function | priority |
|---|---|---|
| > | Greater than | 6 |
| < | Less than | 6 |
| >= | Greater than or equal to | 6 |
| <= | Less than or equal to | 6 |
| != | It's not equal to | 7 |
| == | equal | 7 |
| Logical operators | function | priority |
|---|---|---|
| ! | Logic is not | 2 |
| && | Logic and | 11 |
| || | Logic or | 12 |
| Bitwise operators | function | priority |
|---|---|---|
| & | Bitwise AND | 8 |
| | | Press bit or | 10 |
| ~ | Bitwise non | 2 |
| ^ | Bitwise XOR | 9 |
| >> | Move right (M>>N be equal to M/2 Of N Power ) | 5 |
| << | Move left (M<<N be equal to M*2 Of N Power ) | 5 |
边栏推荐
- Three software installation methods
- 手机开户股票开户安全吗?开户需要准备什么?
- Detailed methods for copying local computer files to virtual machine system
- QT common macro definitions
- Connection flood attack principle
- Stm32g0 porting FreeRTOS
- How to determine the size of the platform byte order?
- El input can only input numbers and has a decimal point. At most two digits can be reserved
- Similarities and differences of differential signal, common mode signal and single ended signal (2022.2.14)
- Calculation and parameter quantity of neural network
猜你喜欢

期末複習-PHP學習筆記6-字符串處理

Vs2019 and SQL

Local unloading traffic of 5g application

QT elementary notes

QT common macro definitions

C language implementation of chain stack (without leading node)

Basic knowledge of system software development

How crazy are young people in sideline industry: 3000 monthly salary and 3W sideline income

Variable storage unit and pointer

Introduction to ecostruxure (1) IEC61499 new scheme
随机推荐
Network security - packet capture and IP packet header analysis
STM32 register on LED
Merge: extension click the El table table data to expand
Stepper motor
Similarities and differences of differential signal, common mode signal and single ended signal (2022.2.14)
線程池——C語言
Resolved: initialize specified but the data directory has files in it Aborting
Final review -php learning notes 11-php-pdo database abstraction layer
期末複習-PHP學習筆記6-字符串處理
Idea running run and services
网络安全-ARP协议和防御
LabVIEW program code update is slow
Stm32g0 porting FreeRTOS
Cmake generate map file
Video player (II): video decoding
Next initializesecuritycontext failed: unknown error (0x80092012) - the revocation function cannot check whether the certificate is revoked.
MAX6675 usage notes
模拟接口没声明异常抛出异常
我今年毕业,但我不知道我要做什么
将本地电脑文件复制到虚拟机系统中详细方法