当前位置:网站首页>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
边栏推荐
- LeetCode 0108.将有序数组转换为二叉搜索树 - 数组中值为根,中值左右分别为左右子树
- Leetcode-1200: minimum absolute difference
- 927. Trisection simulation
- [rust notes] 14 set (Part 2)
- 2022年貴州省職業院校技能大賽中職組網絡安全賽項規程
- LeetCode 0108. Convert an ordered array into a binary search tree - the median of the array is the root, and the left and right of the median are the left and right subtrees respectively
- 884. Uncommon words in two sentences
- One question per day 1765 The highest point in the map
- Flutter Web 硬件键盘监听
- 1039 Course List for Student
猜你喜欢
LeetCode 0107.二叉树的层序遍历II - 另一种方法
LaMDA 不可能觉醒吗?
Liunx starts redis
The connection and solution between the shortest Hamilton path and the traveling salesman problem
LeetCode 0107. Sequence traversal of binary tree II - another method
Navicat連接Oracle數據庫報錯ORA-28547或ORA-03135
Leetcode-6110: number of incremental paths in the grid graph
MatrixDB v4.5.0 重磅发布,全新推出 MARS2 存储引擎!
Sqlmap tutorial (II) practical skills I
MySQL advanced part 2: optimizing SQL steps
随机推荐
Navicat连接Oracle数据库报错ORA-28547或ORA-03135
Overview of variable resistors - structure, operation and different applications
1.13 - RISC/CISC
剑指 Offer II 058:日程表
Data visualization chart summary (II)
数据可视化图表总结(一)
QQ computer version cancels escape character input expression
[practical skills] technical management of managers with non-technical background
1996. number of weak characters in the game
Leetcode-1200: minimum absolute difference
Real time clock (RTC)
Flutter Web 硬件键盘监听
Liunx starts redis
2022年贵州省职业院校技能大赛中职组网络安全赛项规程
The sum of the unique elements of the daily question
“磐云杯”中职网络安全技能大赛A模块新题
A reason that is easy to be ignored when the printer is offline
Sword finger offer II 058: schedule
Daily question 2006 Number of pairs whose absolute value of difference is k
Redis publish subscribe command line implementation