当前位置:网站首页>Distinction between pointer array and array pointer
Distinction between pointer array and array pointer
2022-04-23 19:29:00 【ToneChip】
Which of the following is an array pointer , Which is a pointer array :
A)
int *p1[10];
B)
int (*p2)[10];
Ask this question every class , There's always something you can't figure out . Here we need to understand a priority problem between symbols .
A)“[]” The priority ratio “*” higher .p1 With the first “[]” combination , The definition of an array , Array name p1,int * It modifies the contents of the array , That is, each element of the array . Now we know , This is an array , It contains 10 A point int Pointer to type data , It's a pointer array
B), ad locum “()” The priority ratio “[]” high ,“*” Number and p2 The definition that constitutes a pointer , The pointer variable name is p2,int It modifies the contents of the array , That is, each element of the array . Array has no name here , It's an anonymous array . Now we know p2 It's a pointer , It points to a containing 10 individual int An array of type data , Array pointer
版权声明
本文为[ToneChip]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231923488506.html
边栏推荐
- Parsing headless jsonarray arrays
- Redis core technology and practice 1 - start with building a simple key value database simplekv
- Executor、ExecutorService、Executors、ThreadPoolExecutor、Future、Runnable、Callable
- DevOps集成-Jenkins 服务的环境变量和构建工具 Tools
- MySQL syntax collation (3)
- Thoughts on the optimization of examination papers in the examination system
- Deep learning -- Summary of Feature Engineering
- C语言的十六进制printf为何输出有时候输出带0xFF有时没有
- FFT物理意义: 1024点FFT就是1024个实数,实际进入fft的输入是1024个复数(虚部为0),输出也是1024个复数,有效的数据是前512个复数
- RuntimeError: Providing a bool or integral fill value without setting the optional `dtype` or `out`
猜你喜欢
Garbage collector and memory allocation strategy
Command - sudo
【webrtc】Add x264 encoder for CEF/Chromium
Decompile and get the source code of any wechat applet - just read this (latest)
FFT物理意义: 1024点FFT就是1024个实数,实际进入fft的输入是1024个复数(虚部为0),输出也是1024个复数,有效的数据是前512个复数
[报告] Microsoft :Application of deep learning methods in speech enhancement
[webrtc] add x264 encoder for CEF / Chromium
山大网安靶场实验平台项目—个人记录(四)
An idea of rendering pipeline based on FBO
Using oes texture + glsurfaceview + JNI to realize player picture processing based on OpenGL es
随机推荐
Grafana 分享带可变参数的链接
仓库管理数据库系统设计
Openlayers 5.0 reload the map when the map container size changes
js上传文件时控制文件类型和大小
DevOps集成-Jenkins 服务的环境变量和构建工具 Tools
MySQL practical skills
5 minutes to achieve wechat cloud applet payment function (including source code)
Strange problems in FrameLayout view hierarchy
MySQL syntax collation (3)
JS calculation time difference
Some speculation about the decline of adults' language learning ability
山大网安靶场实验平台项目-个人记录(五)
2021-2022-2 ACM training team weekly Programming Competition (8) problem solution
Virtual machine performance monitoring and fault handling tools
Customize the non slidable viewpage and how to use it
OpenHarmony开源开发者成长计划,寻找改变世界的开源新生力!
A brief explanation of golang's keyword "competence"
Pit encountered using camera x_ When onpause, the camera is not released, resulting in a black screen when it comes back
MFCC: Mel频率倒谱系数计算感知频率和实际频率转换
C6748 软件仿真和硬件测试 ---附详细FFT硬件测量时间