当前位置:网站首页>指针常量与常量指针 巧记
指针常量与常量指针 巧记
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修改其内容)
边栏推荐
- Autoware--Beike Tianhui rfans lidar uses the camera & lidar joint calibration file to verify the fusion effect of point cloud images
- Wechat applet page jump to pass parameters
- Tencent Internal Technology: Evolution of Server Architecture of "The Legend of Xuanyuan"
- 带你深入了解Cookie
- Proprietary host CDH
- LeetCode中常用语言的一些基本方法记录
- VLAN介绍与实验
- input详解之文件上传
- config.js相关配置汇总
- User and user group management, file permission management
猜你喜欢

Teach you simple steps to achieve industrial raspberries pie properly installed RS232 USB drive

el-progress实现进度条颜色不同

LinkSLA insists that users come first and creates a sustainable operation and maintenance service plan

The hook of the operation of the selenium module

sql server 重复值在后面计数

Operation and maintenance engineer, come and pick up the wool

Take you in-depth understanding of cookies

多线程之传递参数

DevOps process demo (practical record)

Mina disconnects and reconnects
随机推荐
The highlight moment of operation and maintenance starts with intelligence
input detailed file upload
ROS2下使用ROS1 bag的方法
flink cdc 目前支持Gauss数据库源吗
What impact does CIPU have on the cloud computing industry?
This is indeed the best article on microservice architecture I have read!
618, you may be able to wake up a little bit
Media query, rem mobile terminal adaptation
One-arm routing experiment and three-layer switch experiment
监控系统的内卷,有什么讲究?
[问题已处理]-虚拟机报错contains a file system with errors check forced
Met with the browser page
深度 Zabbix 使用指南——来自惨绿少年
transport layer protocol
记录vue-页面缓存问题
Mina断线重连
Tencent Cloud Message Queue CMQ
CIPU, what impact does it have on the cloud computing industry?
Browser Storage WebStorage
Wireshark packet capture and common filtering methods