当前位置:网站首页>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
边栏推荐
- MySQL practical skills
- @Analysis of conditional on Web Application
- Command - sudo
- DevOps集成-Jenkins 服务的环境变量和构建工具 Tools
- 一个简单的(基于redisson的)分布式同步工具类封装
- Is meituan, a profit-making company with zero foundation, hungry? Coupon CPS applet (with source code)
- Encyclopedia of professional terms and abbreviations in communication engineering
- 【webrtc】Add x264 encoder for CEF/Chromium
- [report] Microsoft: application of deep learning methods in speech enhancement
- 什么是消息队列
猜你喜欢

Common SQL commands

Kubernetes入门到精通-裸机LoadBalence 80 443 端口暴露注意事项

Openharmony open source developer growth plan, looking for new open source forces that change the world!

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

RuntimeError: Providing a bool or integral fill value without setting the optional `dtype` or `out`

@MapperScan与@Mapper

Command - sudo

5 minutes to achieve wechat cloud applet payment function (including source code)

MySQL syntax collation (5) -- functions, stored procedures and triggers

An idea of rendering pipeline based on FBO
随机推荐
Application of DCT transform
What is a message queue
MySQL数据库 - 数据库和表的基本操作(二)
@MapperScan与@Mapper
UML类图几种关系的总结
uIP1.0 主动发送的问题理解
Coordinate conversion WGS-84 to gcj-02 and gcj-02 to WGS-84
ArcGIS JS API dojoconfig configuration
Using oes texture + glsurfaceview + JNI to realize player picture processing based on OpenGL es
[webrtc] add x264 encoder for CEF / Chromium
考试系统进入试卷优化思路
openlayers 5.0 两种居中方式
5 minutes to achieve wechat cloud applet payment function (including source code)
TI DSP的 FFT与IFFT库函数的使用测试
山大网安靶场实验平台项目-个人记录(五)
[report] Microsoft: application of deep learning methods in speech enhancement
Solve the problem of invalid listview Click
SQL server requires to query the information of all employees with surname 'Wang'
Common processing of point cloud dataset
arcgis js api dojoConfig配置