当前位置:网站首页>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 |
边栏推荐
- 5 years of experience, 27 days of Android programmer interview, 2022 programmer advanced classic
- Webuploader file upload drag upload progress monitoring type control upload result monitoring control
- Go语言 | 02 for循环及常用函数的使用
- Fundamentals of shell programming (Part 8: branch statements -case in)
- Float.floatToRawIntBits的返回值具体意思,将float转为byte数组
- Information / data
- 面试官:Redis中集合数据类型的内部实现方式是什么?
- 集合
- HAC cluster modifying administrator user password
- What do software test engineers do? How about the prospect of treatment?
猜你喜欢

司空见惯 - 英雄扫雷鼠
![[FAQ] summary of common causes and solutions of Huawei account service error 907135701](/img/1d/0e716533237c0e4463f5d6357395bd.png)
[FAQ] summary of common causes and solutions of Huawei account service error 907135701

redis集群模拟消息队列

Tutoriel de téléchargement et d'installation du progiciel fuzor 2020

Decision tree and random forest

Go语言 | 02 for循环及常用函数的使用

HiEngine:可媲美本地的云原生内存数据库引擎

软件测试是干什么的?学习有啥要求?
Mysql如何对json数据进行查询及修改

微波雷达感应模块技术,实时智能检测人体存在,静止微小动静感知
随机推荐
中国银河证券开户安全吗 证券开户
acm入门day1
Common interview questions in Android, 2022 golden nine silver ten Android factory interview questions hit
Summer Challenge database Xueba notes, quick review of exams / interviews~
再忙不能忘安全
How to realize the Online timer and offline timer in the game
Postman core function analysis - parameterization and test report
【合集- 行业解决方案】如何搭建高性能的数据加速与数据编排平台
618“低调”谢幕,百秋尚美如何携手品牌跨越“不确定时代”?
Vagrant2.2.6 supports virtualbox6.1
【无标题】
C#应用程序界面开发基础——窗体控制(6)——菜单栏、工具栏和状态栏控件
什么是面上项目
How about testing outsourcing companies?
【C语言】字符串函数及模拟实现strlen&&strcpy&&strcat&&strcmp
redis集群模拟消息队列
HAC集群修改管理员用户密码
力扣 729. 我的日程安排表 I
HiEngine:可媲美本地的云原生内存数据库引擎
Android interview, Android audio and video development