当前位置:网站首页>指针常量与常量指针 巧记
指针常量与常量指针 巧记
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修改其内容)
边栏推荐
- Wireshark packet capture and common filtering methods
- el-progress implements different colors of the progress bar
- CIPU, what impact does it have on the cloud computing industry?
- What?CDN cache acceleration only works for accelerating static content?
- VLAN is introduced with the experiment
- markdown editor template
- sql server duplicate values are counted after
- VLAN介绍与实验
- From "dual card dual standby" to "dual communication", vivo took the lead in promoting the implementation of the DSDA architecture
- Autoware--Beike Tianhui rfans lidar uses the camera & lidar joint calibration file to verify the fusion effect of point cloud images
猜你喜欢

By solving these three problems, the operation and maintenance efficiency will exceed 90% of the hospital

Vim tutorial: vimtutor

The problem come from line screening process

Cocos Creator Mini Game Case "Stick Soldier"

多行文本省略

What?CDN cache acceleration only works for accelerating static content?

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

selenium learning

Cloud computing - osi seven layers and TCP\IP protocol

Mina's long and short connections
随机推荐
Introduction to Network Layer Protocols
Chengyun Technology was invited to attend the 2022 Alibaba Cloud Partner Conference and won the "Gathering Strength and Going Far" Award
el-progress实现进度条颜色不同
Wechat applet page jump to pass parameters
config.js相关配置汇总
H5 的浏览器存储
Teach you simple steps to achieve industrial raspberries pie properly installed RS232 USB drive
Take you in-depth understanding of cookies
618,你也许可以清醒亿点点
Mina's long and short connections
Mina disconnects and reconnects
wc、grep、tar、vi/vim
深度 Zabbix 使用指南——来自惨绿少年
Will intelligent operation and maintenance replace manual operation and maintenance?
[ingress]-ingress exposes services using tcp port
Quick question and quick answer - FAQ of Tencent Cloud Server
sql server 重复值在后面计数
Next-Generation Parsing Technology - Cloud Parsing
Detailed explanation of ten solutions across domains (summary)
多行文本省略