当前位置:网站首页>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 .
边栏推荐
- Business is too busy. Is there really no reason to have time for automation?
- Taobao commodity review API interface (item_review get Taobao commodity review API interface), tmall commodity review API interface
- 【机器学习】手写数字识别
- 攻防世界 MISC 进阶 glance-50
- Sword finger offer 68 - I. nearest common ancestor of binary search tree
- Practice and principle of PostgreSQL join
- [roommate learned to use Bi report data processing in the time of King glory in one game]
- Sword finger offer 68 - ii The nearest common ancestor of binary tree
- MD5 tool class
- SPSS安装激活教程(包含网盘链接)
猜你喜欢
Unity-VScode-Emmylua配置报错解决
集群的概述与定义,一看就会
SPSS安装激活教程(包含网盘链接)
攻防世界 MISC 进阶区 can_has_stdio?
Challenges faced by virtual human industry
Embedded development: skills and tricks -- seven skills to improve the quality of embedded software code
Hit the core in the advanced area of misc in the attack and defense world
都说软件测试很简单有手就行,但为何仍有这么多劝退的?
Close system call analysis - Performance Optimization
串口数据帧
随机推荐
The difference between Max and greatest in SQL
环境加密技术解析
[Yugong series] go teaching course 003-ide installation and basic use in July 2022
md5工具类
业务太忙,真的是没时间搞自动化理由吗?
The Sandbox 和数字好莱坞达成合作,通过人力资源开发加速创作者经济的发展
Postgresqlql advanced skills pivot table
Close system call analysis - Performance Optimization
企业如何跨越数字化鸿沟?尽在云原生2.0
Shell script implements application service log warehousing MySQL
UML diagram memory skills
Tla+ introductory tutorial (1): introduction to formal methods
Recommendation of mobile app for making barcode
Wake up day, how do I step by step towards the road of software testing
【室友用一局王者荣耀的时间学会了用BI报表数据处理】
华泰证券是国家认可的券商吗?开户安不安全?
Solana chain application crema was shut down due to hacker attacks
Easy to use app recommendation: scan QR code, scan barcode and view history
Logo special training camp Section V font structure and common design techniques
Test will: bug classification and promotion solution