当前位置:网站首页>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
边栏推荐
- What is a message queue
- MySQL数据库 - 单表查询(一)
- Application of DCT transform
- SQL of contention for system time plus time in ocrale database
- Scrum Patterns之理解各种团队模式
- Machine learning catalog
- Kubernetes入门到精通-裸机LoadBalence 80 443 端口暴露注意事项
- Openharmony open source developer growth plan, looking for new open source forces that change the world!
- 坐标转换WGS-84 转 GCJ-02 和 GCJ-02转WGS-84
- Convert string to JSON
猜你喜欢
![[report] Microsoft: application of deep learning methods in speech enhancement](/img/29/2d2addd826359fdb0920e06ebedd29.png)
[report] Microsoft: application of deep learning methods in speech enhancement

2021-2022-2 ACM集训队每周程序设计竞赛(8)题解

OpenHarmony开源开发者成长计划,寻找改变世界的开源新生力!

MySQL lock

ArcMap connecting ArcGIS Server

The most detailed network counting experiment in history (2) -- rip experiment of layer 3 switch

An algorithm problem was encountered during the interview_ Find the mirrored word pairs in the dictionary

精简CUDA教程——CUDA Driver API

Oracle configuration st_ geometry

Deep learning -- Summary of Feature Engineering
随机推荐
Kubernetes入门到精通-KtConnect(全称Kubernetes Toolkit Connect)是一款基于Kubernetes环境用于提高本地测试联调效率的小工具。
坐标转换WGS-84 转 GCJ-02 和 GCJ-02转WGS-84
Openlayers 5.0 loading ArcGIS Server slice service
uIP1.0 主动发送的问题理解
filebeat、logstash配置安装
Build intelligent garbage classification applet based on Zero
Audio signal processing and coding - 2.5.3 the discrete cosine transform
深度学习——特征工程小总结
[report] Microsoft: application of deep learning methods in speech enhancement
HTTP cache - HTTP authoritative guide Chapter VII
MFC获取本机IP(网络通讯时用得多)
Hot reload debugging
Common processing of point cloud dataset
Transaction processing of SQL Server database
考试系统进入试卷优化思路
Openlayers draw rectangle
Customize the non slidable viewpage and how to use it
Solve the problem of invalid listview Click
JVM的类加载过程
C语言的十六进制printf为何输出有时候输出带0xFF有时没有