当前位置:网站首页>Analysis of the self increasing and self decreasing of C language function parameters
Analysis of the self increasing and self decreasing of C language function parameters
2022-07-04 22:51:00 【hugo33】
When looking at the code left by predecessors, I saw such a function :
At that time, I was thinking about the value of this parameter after it was passed in ? A little confused , After reading this article, I can roughly understand :
https://blog.csdn.net/salman_tan/article/details/86168767
If formal parameter uiSendNoAck The initial value for the 0, Then after passing it in , When using this value , It should be the value before the variable increases , That is to say 0, But if the address of the variable is passed in , That is to say &uiSendNoAck, Then using this variable is the value after self increment , That is to say 1. We can understand that , After the formal parameter is passed in, a temporary variable will be generated , The value of the temporary variable is the value of the parameter when it is passed , After passing, the formal parameter will increase automatically . Therefore, using this value in the function is before self increment , Use the address of this variable , It is after self increase .
边栏推荐
- sobel过滤器
- Redis入门完整教程:HyperLogLog
- 新版判断PC和手机端代码,手机端跳转手机端,PC跳转PC端最新有效代码
- Business is too busy. Is there really no reason to have time for automation?
- 剑指 Offer 67. 把字符串转换成整数
- SPSS安装激活教程(包含网盘链接)
- 都说软件测试很简单有手就行,但为何仍有这么多劝退的?
- 华泰证券是国家认可的券商吗?开户安不安全?
- [machine learning] handwritten digit recognition
- Sword finger offer 65 Add without adding, subtracting, multiplying, dividing
猜你喜欢
Tla+ introductory tutorial (1): introduction to formal methods
The new version judges the code of PC and mobile terminal, the mobile terminal jumps to the mobile terminal, and the PC jumps to the latest valid code of PC terminal
Attack and defense world misc advanced area ditf
Three stage operations in the attack and defense drill of the blue team
Logo special training camp Section V font structure and common design techniques
Attack and defense world misc master advanced zone 001 normal_ png
Li Kou 98: verify binary search tree
[Yugong series] go teaching course 003-ide installation and basic use in July 2022
集群的概述与定义,一看就会
LOGO special training camp section I identification logo and Logo Design Ideas
随机推荐
Google Earth Engine(GEE)——以MODIS/006/MCD19A2为例批量下载逐天AOD数据逐天的均值、最大值、最小值、标准差、方差统计分析和CSV下载(北京市各区为例)
More than 30 institutions jointly launched the digital collection industry initiative. How will it move forward in the future?
Redis的持久化机制
繁华落尽、物是人非:个人站长该何去何从
集群的概述与定义,一看就会
Duplicate ADMAS part name
Google Earth engine (GEE) -- take modis/006/mcd19a2 as an example to batch download the daily mean, maximum, minimum, standard deviation, statistical analysis of variance and CSV download of daily AOD
The table is backed up in ODPs. Why check m in the metabase_ Table, the logical sizes of the two tables are inconsistent, but the number of
9 - 类
10 schemes to ensure interface data security
Logo Camp d'entraînement section 3 techniques créatives initiales
Wake up day, how do I step by step towards the road of software testing
安装人大金仓数据库
MYSQL架构——逻辑架构
Logo special training camp section III initial creative techniques
[Yugong series] go teaching course 003-ide installation and basic use in July 2022
繁華落盡、物是人非:個人站長該何去何從
Easy to use app recommendation: scan QR code, scan barcode and view history
Practice and principle of PostgreSQL join
记录:关于Win10系统中Microsoft Edge上的网页如何滚动截屏?