当前位置:网站首页>C language operator priority
C language operator priority
2022-07-19 01:50:00 【tissar】
| priority | Operator | describe | associativity |
|---|---|---|---|
| 1 | ++ -- | Suffix increase / decrement | From left to right |
| ( ) | Function call | ||
| [ ] | The array subscript | ||
| . | Structure 、 Community members | ||
| -> | Structure 、 Community member pointer | ||
| (type){list} | Compound text | ||
| 2 | ++ -- | Prefix increase / decrement | From right to left |
| + - | The sign | ||
| ! ~ | Logic is not According to the not | ||
| (type) | Type conversion | ||
| * | Quoting | ||
| & | Address fetch | ||
| sizeof | Occupancy space | ||
| _Alignof | Alignment requirements | ||
| 3 | * / % | Multiplication division Remainder | From left to right |
| 4 | + - | Add / Subtraction | |
| 5 | << >> | Bitwise left / Move right | |
| 6 | < <= | Less than Less than or equal to | |
| > >= | Greater than Greater than or equal to | ||
| 7 | == != | equal It's not equal | |
| 8 | & | Bitwise AND | |
| 9 | ^ | Bitwise XOR | |
| 10 | | | Press bit or | |
| 11 | && | And | |
| 12 | || | or | |
| 13 | ?: | Three conditions | From right to left |
| 14 | = | assignment | |
| += -= | Add / Value after subtraction | ||
| *= /= %= | ride / except / Assign a value after taking the remainder | ||
| <<= >>= | Bitwise left / Right shift after assignment | ||
| &= ^= |= | Bitwise AND / Exclusive or / Or post assignment | ||
| 15 | , | comma | From left to right |
边栏推荐
猜你喜欢
随机推荐
The following packages have unmet dependencies: deepin.com.wechat:i386 : Depends: deepin-wine:i386
安全多方计算体系架构及应用思考
组合键截图分析
iPhone 各大机型设备号
Today's code farmer girl did exercises on breathing lights, controlled components and high-level components
IPFs mount to local disk
字节二面:什么是伪共享?如何避免?
ChunJun支持异构数据源DDL转换与自动执行 丨DTMO 02期回顾(内含课程回放+课件)
为什么说 OpenSea 是 NFT 交易市场的绝对垄断者?
CMTime简单介绍
How to use express and how to match and use routes
Xcode11新建项目后的一些问题
【文献阅读】MCUNet: Tiny Deep Learning on IoT Devices
常见的Go写文件方式
binary search
使用异或交换两个变量是低效的
基于机器学习技术的无线小区负载均衡自优化
Xcode11添加引导页(升级后Launch Images Source选项不见了)
如何建设实时开发平台,深入释放企业实时数据价值?
通感一体化融合的研究及其挑战








