当前位置:网站首页>&和&&的区别
&和&&的区别
2022-06-29 09:27:00 【西宏柿王多鱼】
1.&
(1)按位运算符; (2)逻辑运算符
作为逻辑运算符时,&左右两端条件式有一个为假就会不成立,但是两端都会运行,比如(1+2)==4 &(1+2)== 3;即使1+2== 4为假也会去判断1+2==3是否成立。
2.&&——逻辑运算符
&&也叫做短路运算符,因为只要左端条件式为假直接不成立,不会去判断右端条件式。
相同点:只要有一端为假,则语句不成立
边栏推荐
- mysql 8.0 一条insert语句的具体执行流程分析(三)
- Application of Pgp in encryption technology
- winform使用zxing生成二维码
- 1099 build a binary search tree (30 points)
- 《CLR via C#》读书笔记-加载与AppDomain
- std::make_shared<T>/std::make_unique<T>与std::shared_ptr<T>/std::unique_ptr<T>的区别与联系
- 1147 heaps (30 points)
- Codeforces Round #652 (Div. 2)
- 这个开源项目超哇塞,手写照片在线生成
- 2020-09-18 referer authentication URL escape
猜你喜欢
随机推荐
To 3 -- the last programming challenge
September 21, 2020 referer string segmentation boost gateway code organization level
2019.11.13 training summary
C language library function --strstr()
2019.10.27 training summary
解决zxing的QR码包含中文时乱码的问题
在实践中学习Spark计算框架(01)
Talk about threads and concurrency
F5 big IP Icontrol rest command execution (cve-2022-1388)
QGIS mapping
Codeforces Round #641 Div2
完全二叉树的权值 递归做法 ——最后的编程挑战
manacher
L2-031 go deep into the tiger's den (25 points)
Recyclerview universal adapter package
std::unique_ PTR < T> and boost:: scoped_ Particularity of PTR < t >
2019.10.23 training summary
Simulation problem of two stacks
I would like to know how to open an account for free online stock registration? In addition, is it safe to open a mobile account?
Add/modify/drop column of alter table operation in MySQL







