当前位置:网站首页>Common operators and operator priority
Common operators and operator priority
2022-07-05 19:38:00 【Try some fresh food with a child】
One 、 Common operators
1、 Arithmetic operator
2、 Relational operator
3、 Logical operators
4、 Assignment operator
5、 Conditional operator ( The only ternary operator )
Two 、 Arithmetic operator
Basic arithmetic operators
/ * % + -
3、 ... and 、 Relational operator
Test the relationship between two values , Return to true or false
<
<=
=
==
!=
===
!==
Four 、 Logical operators
-&&( Logic and ): Only when both the operand and the second operand are ture when , Others are false
-!!( Logic or ): Only when the first operand and the second operand are false, result false, Others are true
-!( Logic is not ): Inverse
5、 ... and 、 Assignment operator
=、+=、-=、*=、/=、%=
6、 ... and 、 Conditional operator
Ternary operator :–?--:–
The first operand is Boolean , by ture, Calculate the second operand , And return the calculation results , otherwise , Calculate the third operand , And return the calculation results
7、 ... and 、 Operator priority
| Operator | operation |
|---|---|
| ! | Logic is not |
| * 、/、 % | ride 、 except 、 Remainder |
| <、<=、>、>= | Less than 、 Less than or equal to 、 Greater than 、 Greater than or equal to |
| ==、!= | Judgment is equal to the 、 Judgment does not equal |
| ===、!= | Judgement is equal to 、 Judgment is not equal to |
| && | Logic and |
| ll | Logic or |
| ?: | Conditional operator |
| =、+=、-=、*=、/=、%= etc. | Assignment operator |
边栏推荐
- 集合
- Debezium系列之:postgresql从偏移量加载正确的最后一次提交 LSN
- 中国银河证券开户安全吗 证券开户
- Fundamentals of shell programming (Chapter 9: loop)
- Postman核心功能解析-参数化和测试报告
- 力扣 1200. 最小绝对差
- 5 years of experience, 27 days of Android programmer interview, 2022 programmer advanced classic
- word如何转换成pdf?word转pdf简单的方法分享!
- 40000 word Wenshuo operator new & operator delete
- 众昂矿业:2022年全球萤石行业市场供给现状分析
猜你喜欢

Hiengine: comparable to the local cloud native memory database engine

【FAQ】华为帐号服务报错 907135701的常见原因总结和解决方法

Common interview questions in Android, 2022 golden nine silver ten Android factory interview questions hit

MMO项目学习一:预热

四万字长文说operator new & operator delete
完爆面试官,一线互联网企业高级Android工程师面试题大全

IBM has laid off 40 + year-old employees in a large area. Mastering these ten search skills will improve your work efficiency ten times

Oracle故障处理:Ora-10873:file * needs to be either taken out of backup or media recovered

全网最全的低代码/无代码平台盘点:简道云、伙伴云、明道云、轻流、速融云、集简云、Treelab、钉钉·宜搭、腾讯云·微搭、智能云·爱速搭、百数云

Two pits exported using easyexcel template (map empty data columns are disordered and nested objects are not supported)
随机推荐
Bitcoinwin (BCW) was invited to attend Hanoi traders fair 2022
【合集- 行业解决方案】如何搭建高性能的数据加速与数据编排平台
webuploader文件上传 拖拽上传 进度监听 类型控制 上传结果监听控件
How to choose the notion productivity tools? Comparison and evaluation of notion, flowus and WOLAI
[AI framework basic technology] automatic derivation mechanism (autograd)
MySQL中字段类型为longtext的值导出后显示二进制串方式
IBM has laid off 40 + year-old employees in a large area. Mastering these ten search skills will improve your work efficiency ten times
Debezium系列之:修改源码支持drop foreign key if exists fk
C application interface development foundation - form control (5) - grouping control
Shell编程基础(第8篇:分支语句-case in)
Debezium系列之:修改源码支持unix_timestamp() as DEFAULT value
【硬核干货】数据分析哪家强?选Pandas还是选SQL
四万字长文说operator new & operator delete
How to apply smart contracts more wisely in 2022?
[untitled]
The problem of returning the longtext field in MySQL and its solution
redis集群模拟消息队列
The binary string mode is displayed after the value with the field type of longtext in MySQL is exported
软件测试工程师是做什么的?待遇前景怎么样?
[OBS] qstring's UTF-8 Chinese conversion to blog printing UTF-8 char*