当前位置:网站首页>指针常量与常量指针 巧记
指针常量与常量指针 巧记
2022-08-05 05:24:00 【毕竟是shy哥】
从右往左看,const右边是谁,谁就不能改变!!
- 怎么读呢,const表示常量,*表示指针,按照先后顺序连起来读就可以了。
- 常量指针
int const * p1=&number;
速记: p1表示指针,*p1表示内容,即“const内容”,内容是常量,即内容不可以修改(可以修改p1的指向)
2. 指针常量
int * const p1=&number;
速记:p1是指针,const p1,即“常量p1”,也就是p1不可以修改,即p1的指向不可以修改(可以通过p1修改其内容)
边栏推荐
- 请问下通过flink sql读取hologres 的两张表的 binlog,然后如何进行join?
- Does flink cdc currently support Gauss database sources?
- flink cdc 目前支持Gauss数据库源吗
- Tencent Internal Technology: Evolution of Server Architecture of "The Legend of Xuanyuan"
- Browser Storage WebStorage
- D39_Eulerian Angles and Quaternions
- VLAN介绍与实验
- 通过反射获取Class对象的四种方式
- LeetCode刷题记录(2)
- Mina's long and short connections
猜你喜欢

input详解之文件上传

LeetCode中常用语言的一些基本方法记录

RAID磁盘阵列

RAID disk array

sql server 重复值在后面计数

sql server duplicate values are counted after

Successful indie developers deal with failure & imposters

From "dual card dual standby" to "dual communication", vivo took the lead in promoting the implementation of the DSDA architecture

Met with the browser page

Passing parameters in multiple threads
随机推荐
Mina断线重连
Vim tutorial: vimtutor
设置文本向两边居中展示
Network Troubleshooting Basics - Study Notes
Operation and maintenance engineer, come and pick up the wool
Mina's long and short connections
Four ways to obtain Class objects through reflection
What should I do if the SSL certificate prompts that it is expired or invalid?
D46_Force applied to rigid body
Mina disconnects and reconnects
618,你也许可以清醒亿点点
Transformer详细解读与预测实例记录
七种让盒子水平垂直居中的方法
DevOps - Understanding Learning
路由器和静态路由的配置
The hook of the operation of the selenium module
selenium学习
Seven Ways to Center a Box Horizontally and Vertically
传输层协议
智能运维会取代人工运维吗?