当前位置:网站首页>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 .
边栏推荐
- Tla+ introductory tutorial (1): introduction to formal methods
- Logo special training camp Section IV importance of font design
- High school physics: linear motion
- Redis入门完整教程:发布订阅
- md5工具类
- Serial port data frame
- Logo Camp d'entraînement section 3 techniques créatives initiales
- 攻防世界 MISC 进阶区 Erik-Baleog-and-Olaf
- SPSS安装激活教程(包含网盘链接)
- 9 - class
猜你喜欢
Attack and defense world misc advanced area can_ has_ stdio?
攻防世界 MISC 进阶区 3-11
The Sandbox 和数字好莱坞达成合作,通过人力资源开发加速创作者经济的发展
页面关闭前,如何发送一个可靠请求
[Yugong series] go teaching course 003-ide installation and basic use in July 2022
常用技术指标之一文读懂BOLL布林线指标
攻防世界 misc 高手进阶区 a_good_idea
Duplicate ADMAS part name
Attack and defense world misc advanced grace-50
Advanced area of attack and defense world misc 3-11
随机推荐
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
新版判断PC和手机端代码,手机端跳转手机端,PC跳转PC端最新有效代码
串口数据帧
繁华落尽、物是人非:个人站长该何去何从
Easy to use app recommendation: scan QR code, scan barcode and view history
Li Kou 98: verify binary search tree
Solana chain application crema was shut down due to hacker attacks
Taobao commodity review API interface (item_review get Taobao commodity review API interface), tmall commodity review API interface
Mongodb aggregation operation summary
蓝队攻防演练中的三段作战
Sobel filter
记录:关于Win10系统中Microsoft Edge上的网页如何滚动截屏?
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
Three stage operations in the attack and defense drill of the blue team
MySQL Architecture - logical architecture
PMO: compare the sample efficiency of 25 molecular optimization methods
Google Earth Engine(GEE)——Tasks升级,实现RUN ALL可以一键下载任务类型中的所有影像
9 - class
剑指Offer 68 - II. 二叉树的最近公共祖先
[OpenGL] note 29 anti aliasing (MSAA)