当前位置:网站首页>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 |
边栏推荐
- [hard core dry goods] which company is better in data analysis? Choose pandas or SQL
- 爬虫练习题(二)
- gst-launch的-v参数
- 如何在2022年更明智地应用智能合约?
- Debezium系列之:修改源码支持unix_timestamp() as DEFAULT value
- Django使用mysqlclient服务连接并写入数据库的操作过程
- Postman核心功能解析-参数化和测试报告
- IFD-x 微型红外成像仪(模块)关于温度测量和成像精度的关系
- [untitled]
- XaaS 陷阱:万物皆服务(可能)并不是IT真正需要的东西
猜你喜欢
Two pits exported using easyexcel template (map empty data columns are disordered and nested objects are not supported)
JAD的安装、配置及集成IDEA
Notion 类生产力工具如何选择?Notion 、FlowUs 、Wolai 对比评测
[Collection - industry solutions] how to build a high-performance data acceleration and data editing platform
Fuzor 2020 software installation package download and installation tutorial
Summer Challenge database Xueba notes, quick review of exams / interviews~
JMeter 常用的几种断言方法,你会了吗?
HiEngine:可媲美本地的云原生内存数据库引擎
Debezium系列之:记录mariadb数据库删除多张临时表debezium解析到的消息以及解决方法
The problem of returning the longtext field in MySQL and its solution
随机推荐
2022 the latest big company Android interview real problem analysis, Android development will be able to technology
成功入职百度月薪35K,2022Android开发面试解答
UWB ultra wideband positioning technology, real-time centimeter level high-precision positioning application, ultra wideband transmission technology
word如何转换成pdf?word转pdf简单的方法分享!
Successful entry into Baidu, 35K monthly salary, 2022 Android development interview answer
Vagrant2.2.6 supports virtualbox6.1
【硬核干货】数据分析哪家强?选Pandas还是选SQL
What do software test engineers do? How about the prospect of treatment?
Oracle fault handling: ora-10873:file * needs to be either taken out of backup or media recovered
JAD的安装、配置及集成IDEA
Millimeter wave radar human body sensor, intelligent perception of static presence, human presence detection application
【AI 框架基础技术】自动求导机制 (Autograd)
建议收藏,我的腾讯Android面试经历分享
Debezium系列之:解析默认值字符集
什么是面上项目
S7-200SMART利用V90 MODBUS通信控制库控制V90伺服的具体方法和步骤
Apprentissage du projet MMO I: préchauffage
【合集- 行业解决方案】如何搭建高性能的数据加速与数据编排平台
【C语言】字符串函数及模拟实现strlen&&strcpy&&strcat&&strcmp
Get wechat avatar and nickname with uniapp