当前位置:网站首页>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 |
边栏推荐
- Go语言 | 03 数组、指针、切片用法
- Inventory of the most complete low code / no code platforms in the whole network: Jiandao cloud, partner cloud, Mingdao cloud, Qingliu, xurong cloud, Jijian cloud, treelab, nailing · Yida, Tencent clo
- The relationship between temperature measurement and imaging accuracy of ifd-x micro infrared imager (module)
- Common - Hero Minesweeper
- 【无标题】
- flume系列之:拦截器过滤数据
- 如何实现游戏中的在线计时器和离线计时器
- What are the reliable domestic low code development platforms?
- 力扣 1200. 最小绝对差
- Common interview questions in Android, 2022 golden nine silver ten Android factory interview questions hit
猜你喜欢
MySql中的longtext字段的返回问题及解决
How to choose the notion productivity tools? Comparison and evaluation of notion, flowus and WOLAI
Fuzor 2020軟件安裝包下載及安裝教程
力扣 1200. 最小绝对差
Notion 类生产力工具如何选择?Notion 、FlowUs 、Wolai 对比评测
Fuzor 2020软件安装包下载及安装教程
JAD installation, configuration and integration idea
Django uses mysqlclient service to connect and write to the database
2022 the latest big company Android interview real problem analysis, Android development will be able to technology
Zhongang Mining: analysis of the current market supply situation of the global fluorite industry in 2022
随机推荐
Millimeter wave radar human body sensor, intelligent perception of static presence, human presence detection application
Mariadb root用户及普通用户的密码 重置
Mysql如何对json数据进行查询及修改
The binary string mode is displayed after the value with the field type of longtext in MySQL is exported
毫米波雷达人体感应器,智能感知静止存在,人体存在检测应用
Android interview, Android audio and video development
Postman核心功能解析-参数化和测试报告
Fuzor 2020 software installation package download and installation tutorial
C#应用程序界面开发基础——窗体控制(5)——分组类控件
Apprentissage du projet MMO I: préchauffage
XaaS 陷阱:万物皆服务(可能)并不是IT真正需要的东西
Debezium系列之:IDEA集成词法和语法分析ANTLR,查看debezium支持的ddl、dml等语句
信息/数据
【硬核干货】数据分析哪家强?选Pandas还是选SQL
C application interface development foundation - form control (5) - grouping control
强化学习-学习笔记4 | Actor-Critic
国海证券在网上开户安全吗?
如何在2022年更明智地应用智能合约?
打新债在哪里操作开户是更安全可靠的呢
Bitcoinwin (BCW)受邀参加Hanoi Traders Fair 2022