当前位置:网站首页>指针常量与常量指针 巧记
指针常量与常量指针 巧记
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修改其内容)
边栏推荐
- What impact does CIPU have on the cloud computing industry?
- Into the pre-service, thought they play so flowers
- Will intelligent operation and maintenance replace manual operation and maintenance?
- VRRP overview and experiment
- Cloud computing - osi seven layers and TCP\IP protocol
- RAID disk array
- 请问下通过flink sql读取hologres 的两张表的 binlog,然后如何进行join?
- 网络层协议介绍
- 智能运维会取代人工运维吗?
- 媒体查询、rem移动端适配
猜你喜欢

DevOps - Understanding Learning

Vim tutorial: vimtutor

VRRP overview and experiment

网络层协议介绍

有哪些事情是你做了运维才知道的?

ALC实验

disabledDate 日期选择器 datePicker

Autoware--Beike Tianhui rfans lidar uses the camera & lidar joint calibration file to verify the fusion effect of point cloud images

Unity realizes first-person roaming (nanny-level tutorial)

What?CDN cache acceleration only works for accelerating static content?
随机推荐
Growth: IT Operations Trends Report
el-autocomplete使用
King power volume LinkSLA, realize operations engineer is happy fishing
路由器和静态路由的配置
Wireshark packet capture and common filtering methods
七种让盒子水平垂直居中的方法
Proprietary host CDH
设置文本向两边居中展示
Configuration of routers and static routes
H5开发调试-Fiddler手机抓包
错误记录集锦(遇到则记下)
Next-Generation Parsing Technology - Cloud Parsing
BIO, NIO, AIO practical study notes (easy to understand theory)
The size of the screen adaptation
What should I do if the SSL certificate prompts that it is expired or invalid?
VLAN is introduced with the experiment
从“双卡双待“到”双通“,vivo率先推动DSDA架构落地
D39_Eulerian Angles and Quaternions
VRRP概述及实验
ALC experiment