当前位置:网站首页>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 |
边栏推荐
- MySql中的longtext字段的返回问题及解决
- 太牛了,看这篇足矣了
- 微波雷达感应模块技术,实时智能检测人体存在,静止微小动静感知
- 不愧是大佬,字节大牛耗时八个月又一力作
- Two pits exported using easyexcel template (map empty data columns are disordered and nested objects are not supported)
- Android面试,android音视频开发
- 【obs】libobs-winrt :CreateDispatcherQueueController
- C#应用程序界面开发基础——窗体控制(5)——分组类控件
- MMO項目學習一:預熱
- 安信证券在网上开户安全吗?
猜你喜欢
MySql中的longtext字段的返回问题及解决
Successful entry into Baidu, 35K monthly salary, 2022 Android development interview answer

Microwave radar induction module technology, real-time intelligent detection of human existence, static micro motion and static perception

面试官:Redis中集合数据类型的内部实现方式是什么?

618“低调”谢幕,百秋尚美如何携手品牌跨越“不确定时代”?

Webuploader file upload drag upload progress monitoring type control upload result monitoring control
![[untitled]](/img/51/c89d35c855e299b02137d676790eb6.png)
[untitled]
![[hard core dry goods] which company is better in data analysis? Choose pandas or SQL](/img/70/a79c4a1724c11e208814de2d9cf553.png)
[hard core dry goods] which company is better in data analysis? Choose pandas or SQL

What is the core value of testing?
PHP利用ueditor实现上传图片添加水印
随机推荐
集合
What does software testing do? What are the requirements for learning?
Oracle fault handling: ora-10873:file * needs to be either taken out of backup or media recovered
Shell编程基础(第8篇:分支语句-case in)
微波雷达感应模块技术,实时智能检测人体存在,静止微小动静感知
手机股票开户安全吗?靠不靠谱啊?
司空见惯 - 英雄扫雷鼠
What do software test engineers do? How about the prospect of treatment?
IFD-x 微型红外成像仪(模块)关于温度测量和成像精度的关系
PG基础篇--逻辑结构管理(用户及权限管理)
5 years of experience, 27 days of Android programmer interview, 2022 programmer advanced classic
Information / data
Vagrant2.2.6 supports virtualbox6.1
IBM大面积辞退40岁+的员工,掌握这十个搜索技巧让你的工作效率至上提高十倍
Worthy of being a boss, byte Daniel spent eight months on another masterpiece
[AI framework basic technology] automatic derivation mechanism (autograd)
[hard core dry goods] which company is better in data analysis? Choose pandas or SQL
Common - Hero Minesweeper
JAD installation, configuration and integration idea
爬虫练习题(二)