当前位置:网站首页>Operator priority, one catch, no doubt
Operator priority, one catch, no doubt
2022-07-05 06:15:00 【Summer seaweed】
List of articles
Preface
The content is mainly for reference 《C A deep analysis of language 》
Operator priority
The use of priority can refer to the subscript table :
Be careful
In front of ++, After ++, Quoting *, Member variable accessors -> and . , Pay attention to their respective priorities , From the above table, we can get Member access operator . The highest priority , The second is Access operators -> The priority of the , ++ Priority is higher than Quoting * Operators have high priority
For the use of priority , There is no need to memorize , With the more , Write more and remember , Generally remember Multiplication and division The priority ratio Addition and subtraction Just be tall , Others that require multiple operators , Always use parentheses To emphasize priorities , This will not produce ambiguity , It is also convenient for later generations to read and understand .
There are also a few mistakes :
Last
Thanks for watching , Improve together , Slowly get stronger
边栏推荐
- [rust notes] 16 input and output (Part 2)
- 【Rust 笔记】13-迭代器(中)
- Matrixdb V4.5.0 was launched with a new mars2 storage engine!
- Daily question 1984 Minimum difference in student scores
- SPI details
- Leetcode divide and conquer / dichotomy
- 数据可视化图表总结(二)
- Smart construction site "hydropower energy consumption online monitoring system"
- [rust notes] 16 input and output (Part 1)
- 【Rust 笔记】13-迭代器(下)
猜你喜欢
Wazuh開源主機安全解决方案的簡介與使用體驗
Erreur de connexion Navicat à la base de données Oracle Ora - 28547 ou Ora - 03135
Overview of variable resistors - structure, operation and different applications
Doing SQL performance optimization is really eye-catching
Navicat連接Oracle數據庫報錯ORA-28547或ORA-03135
R language [import and export of dataset]
开源存储这么香,为何我们还要坚持自研?
Groupbykey() and reducebykey() and combinebykey() in spark
SQLMAP使用教程(二)实战技巧一
Data visualization chart summary (II)
随机推荐
LVS简介【暂未完成(半成品)】
MIT-6874-Deep Learning in the Life Sciences Week 7
[rust notes] 13 iterator (Part 2)
TypeScript 基础讲解
MySQL advanced part 1: triggers
Open source storage is so popular, why do we insist on self-development?
MySQL advanced part 2: the use of indexes
[rust notes] 14 set (Part 2)
leetcode-22:括号生成
The difference between CPU core and logical processor
js快速将json数据转换为url参数
Currently clicked button and current mouse coordinates in QT judgment interface
Smart construction site "hydropower energy consumption online monitoring system"
2022年貴州省職業院校技能大賽中職組網絡安全賽項規程
Golang uses context gracefully
Daily question 2006 Number of pairs whose absolute value of difference is k
1039 Course List for Student
Leetcode-9: palindromes
SPI details
Daily question 2013 Detect square