当前位置:网站首页>Understanding of pointers
Understanding of pointers
2022-06-11 02:00:00 【Jihai】
1. Pointer definition
( First level pointer )


( The secondary pointer )---- Continued above


2. test
( First level pointer )


( The secondary pointer )


3. If the formal parameter of a function is a pointer , Then the actual parameters of the call I want the address , If you need Take the address symbol & It depends on the actual parameter itself yes Variable still The pointer . yes Variable , To get the address , yes The pointer Don't To get the address .


---- When a pointer is assigned ,*p=&i And p=&i What's the difference? ?
1.*p=&i The result is *p The value of is a variable i The address of ;p=&i The result is p Point to variable i The address of ,*p The value of is i. 2.*p Represents the value of the address pointed to by the reference pointer .( The pointer of the pointer )
*p=&i,p It's a secondary pointer , namely p Point to another pointer , Then the pointer points to i The address of , Or indirectly i Of Address .
p=&i, Express p Direct to i The address of .
边栏推荐
- 2021-07-18 ROS notes - basics and communication
- CLIP论文详解
- kubernetes 二进制安装(v1.20.15)(七)加塞一个工作节点
- Within one month, the broadcasting volume has increased by 9million, and station B has three traffic growth passwords!
- 2021-2-14 gephi learning notes
- Dialog AlertDialog 、SimpleDialog、showModalBottomSheet、showToast Flutter 自定义 Dialog
- [leetcode] LRU cache
- 字节北京23k和拼多多上海28K,我该怎么选?
- 卡尔曼滤波(KF)、拓展卡尔曼滤波(EKF)推导
- Deep exploration of functions with indefinite parameters in C language
猜你喜欢
![[music] playing city of the sky based on MATLAB [including Matlab source code 1874]](/img/cf/63b04080867e93ab2e00e2e21b37df.jpg)
[music] playing city of the sky based on MATLAB [including Matlab source code 1874]
![[leetcode] same tree + symmetric binary tree](/img/e5/40803ce66756c03737aa8991f7ec92.jpg)
[leetcode] same tree + symmetric binary tree
![[leetcode] path sum II (first glimpse recursion + backtracking)](/img/a8/54920e54a026ebef3eb0a1336e5b62.jpg)
[leetcode] path sum II (first glimpse recursion + backtracking)
![[leetcode] ordered linked list transformation binary search tree](/img/9f/86e819beb8dc678d79c3e307891402.jpg)
[leetcode] ordered linked list transformation binary search tree

Start with interpreting the code automatically generated by BDC, and explain the trial version of the program components of sapgui

【音乐】基于matlab演奏《过火》【含Matlab源码 1875期】

视频压缩数据集TVD

2.0 detailed explanation of ROS and Px4 communication

Task02: basic use of database (MySQL)
![[BSP video tutorial] BSP video tutorial issue 17: single chip microcomputer bootloader topic, startup, jump configuration and various usage of debugging and downloading (2022-06-10)](/img/69/1e2a71f123527b9aa8381cb9b86f7f.png)
[BSP video tutorial] BSP video tutorial issue 17: single chip microcomputer bootloader topic, startup, jump configuration and various usage of debugging and downloading (2022-06-10)
随机推荐
Leetcode 665 non decreasing array (greedy)
How to change the administrator's Avatar in win11? Win11 method of changing administrator image
Dialog alertdialog, simpledialog, showmodalbottomsheet, showtoast shutter custom dialog
【圖像處理】基於matlab GUI多功能圖像處理系統【含Matlab源碼 1876期】
【Qt】error: QApplication: No such file or directory 解决方案
2021-02-03 learning notes of MATLAB before the US games (grey prediction and linear programming)
[traitement d'image] système multifonctionnel de traitement d'image basé sur l'interface graphique MATLAB [y compris le code source MATLAB 1876]
LeetCode 1010 Pairs of Songs With Total Durations Divisible by 60 (hash)
Leetcode 652 find duplicate subtrees (recommended by DFS)
[leetcode] LRU cache
【BSP视频教程】BSP视频教程第17期:单片机bootloader专题,启动,跳转配置和调试下载的各种用法(2022-06-10)
LeetCode 1609 Even Odd Tree (bfs)
Video compression data set TVD
[leetcode] construct a binary tree by traversing the sequence from front to middle (continuous optimization)
MATLAB随机函数汇总
What if ROS lacks a package
字节北京23k和拼多多上海28K,我该怎么选?
[traffic sign recognition] Based on Matlab GUI YCbCr feature extraction +bp neural network traffic sign recognition [including Matlab source code 1869]
1.2. Ros+px4 preliminary basic knowledge
ros缺包怎么办