当前位置:网站首页>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 |
边栏推荐
- 什么是面上项目
- C#应用程序界面开发基础——窗体控制(5)——分组类控件
- 如何实现游戏中的在线计时器和离线计时器
- PG基础篇--逻辑结构管理(用户及权限管理)
- Webuploader file upload drag upload progress monitoring type control upload result monitoring control
- Decision tree and random forest
- Worthy of being a boss, byte Daniel spent eight months on another masterpiece
- 【FAQ】华为帐号服务报错 907135701的常见原因总结和解决方法
- 城链科技数字化创新战略峰会圆满召开
- vagrant2.2.6支持virtualbox6.1版本
猜你喜欢
Postman core function analysis - parameterization and test report
Go语言 | 02 for循环及常用函数的使用
IBM has laid off 40 + year-old employees in a large area. Mastering these ten search skills will improve your work efficiency ten times
MMO項目學習一:預熱
众昂矿业:2022年全球萤石行业市场供给现状分析
面试官:Redis中集合数据类型的内部实现方式是什么?
软件测试是干什么的?学习有啥要求?
强化学习-学习笔记4 | Actor-Critic
How to realize the Online timer and offline timer in the game
毫米波雷达人体感应器,智能感知静止存在,人体存在检测应用
随机推荐
Reptile exercises (II)
2022 the latest big company Android interview real problem analysis, Android development will be able to technology
Xaas trap: all things serve (possible) is not what it really needs
力扣 1200. 最小绝对差
Is it safe for Anxin securities to open an account online?
Go语言 | 02 for循环及常用函数的使用
Debezium系列之:修改源码支持unix_timestamp() as DEFAULT value
IBM大面积辞退40岁+的员工,掌握这十个搜索技巧让你的工作效率至上提高十倍
Debezium系列之:postgresql从偏移量加载正确的最后一次提交 LSN
Is it safe for China Galaxy Securities to open an account? Securities account opening
力扣 729. 我的日程安排表 I
Go语言 | 01 WSL+VSCode环境搭建避坑指南
PHP uses ueditor to upload pictures and add watermarks
MySQL中字段类型为longtext的值导出后显示二进制串方式
MySql中的longtext字段的返回问题及解决
Postman核心功能解析-参数化和测试报告
Debezium系列之:解析默认值字符集
S7-200SMART利用V90 MODBUS通信控制库控制V90伺服的具体方法和步骤
【obs】libobs-winrt :CreateDispatcherQueueController
建议收藏,我的腾讯Android面试经历分享