当前位置:网站首页>指针常量与常量指针 巧记
指针常量与常量指针 巧记
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修改其内容)
边栏推荐
- Wechat applet page jump to pass parameters
- Browser Storage for H5
- DevOps - Understanding Learning
- 跨域的十种解决方案详解(总结)
- In-depth Zabbix user guide - from the green boy
- 用户和用户组管理、文件权限管理
- H5 的浏览器存储
- What impact does CIPU have on the cloud computing industry?
- Successful indie developers deal with failure & imposters
- VRRP overview and experiment
猜你喜欢
随机推荐
[issue resolved] - jenkins pipeline checkout timeout
Will intelligent operation and maintenance replace manual operation and maintenance?
浏览器存储WebStorage
Mina disconnects and reconnects
5分钟完成mysql离线安装
By solving these three problems, the operation and maintenance efficiency will exceed 90% of the hospital
This is indeed the best article on microservice architecture I have read!
Next-Generation Parsing Technology - Cloud Parsing
从“双卡双待“到”双通“,vivo率先推动DSDA架构落地
ALC实验
Passing parameters in multiple threads
NAT实验
跨域的十种解决方案详解(总结)
BIO, NIO, AIO practical study notes (easy to understand theory)
H5 的浏览器存储
What is Alibaba Cloud Express Beauty Station?
Cloud Computing Basics - Study Notes
Network wiring and digital-to-system conversion
wc、grep、tar、vi/vim
[ingress]-ingress exposes services using tcp port







