当前位置:网站首页>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 |
边栏推荐
- Examen final - notes d'apprentissage PHP 6 - traitement des chaînes
- 单测调用对象的私有方法
- Dynamic memory management
- PMIC power management
- Swiftui creates a beautiful custom press feedback button
- Connection flood attack principle
- QT wmic command obtains some hardware information
- Network security - single arm routing, DHCP relay and ICMP Protocol
- Minecraft 1.16.5 module development (50) guide book
- Network security - routing principle
猜你喜欢

Introduction to ecostruxure (1) IEC61499 new scheme

Raspberry pie 4B Getting Started Guide

线程池——C语言

Adjacency matrix representation of weighted undirected graph (implemented in C language)

FreeRTOS timer group

Three software installation methods

I graduated this year, but I don't know what I want to do

next InitializeSecurityContext failed: Unknown error (0x80092012) - 吊销功能无法检查证书是否吊销。

Binary tree traversal

Basic knowledge points
随机推荐
Adjacency matrix representation of weighted undirected graph (implemented in C language)
C language implementation sequence stack
QT common macro definitions
Network security - routing principle
期末复习-PHP学习笔记9-PHP会话控制
Can introduction
Minecraft 1.16.5 module development (50) guide book
Final review -php learning notes 11-php-pdo database abstraction layer
How to use string branches for switch case
Use of ecostruxure (2) IEC61499 to establish function blocks
Raspberry pie trivial configuration
Next initializesecuritycontext failed: unknown error (0x80092012) - the revocation function cannot check whether the certificate is revoked.
[resolved] MySQL exception: error 1045 (28000): unknown error 1045, forgetting the initial password
Quick placement of devices by module in Ad
How to quickly delete routing in Ad
Utilisation de la commande grep
Final review -php learning notes 6- string processing
Digital tube EEPROM key to save value
LabVIEW program code update is slow
Matter protocol