当前位置:网站首页>前置++,后置++与前置--与后置--(++a,a++与--a,a--)
前置++,后置++与前置--与后置--(++a,a++与--a,a--)
2022-06-26 00:13:00 【原来是这样^^】
前置++:
前置++顾名思义如图inb = ++a;是先++后面跟上一个变量a
前置++是先将a+1,然后在赋值给b
所以打印出来的是a为11,b也为11。
后置++:
如代码第2行所示,后置++是先将a赋值给b,所以b的值为10,a再++,所以a的值是11
前置--与后置--原理一样不做过多重复
边栏推荐
- GUN make (4) 规则的命令
- Perfdog
- Obtain WiFi password through computer (only connected WiFi)
- PTA class a simulated ninth bullet: 1114-1117
- xargs 的作用详解
- Worthington胶原蛋白酶的多类型研究
- APP测试与WEB测试的区别
- recvmsg & sendmsg
- Oracle數據庫完全卸載步驟(暫無截圖)
- 2022 explosion proof electrical operation certificate examination question bank and simulation examination
猜你喜欢
俏皮少女王艺璇 受邀担任第六季完美童模全球总决赛推广大使
--SQL of urban cultivation manual -- Chapter 1 basic review
25. histogram comparison
Simple making of master seal
Xiaomi tablet 5 Pro unlock bootloader
21. Hoff circle transformation
阳光男孩陈颢天 受邀担任第六季完美童模全球总决赛代言人
cyclegan:unpaired image-to-image translation using cycle-consistent adversarial network
Sunshine boy chenhaotian was invited to be the spokesperson for the global finals of the sixth season perfect children's model
26. histogram back projection
随机推荐
Textcnn paper Interpretation -- revolutionary neural networks for sense classification
2021-1-15 fishing notes ctrl+c /v
JSON introduction
Abnova丨CSV 单克隆抗体解决方案
Wechat circle of friends test point
PTA class a simulated sixth bomb: 1156-1159
Sunshine boy chenhaotian was invited to be the spokesperson for the global finals of the sixth season perfect children's model
Basic concepts of machine learning
微信朋友圈测试点
One stop solution EMQ for hundreds of millions of communication of Internet of things
输入3个整数,从大到小输出出来
Principle of voice wake-up
浅谈接口测试(一)
王老吉药业“关爱烈日下最可爱的人”公益活动在杭启动
26. histogram back projection
JQ user defined attribute value
JSON instance (I)
Difference between app test and web test
CyCa children's physical etiquette Yueqing City training results assessment successfully concluded
PTA class a simulation bomb 10: 1119-1123