当前位置:网站首页>指针常量与常量指针 巧记
指针常量与常量指针 巧记
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修改其内容)
边栏推荐
- 原生JS带你了解数组方法实现及使用
- In-depth Zabbix user guide - from the green boy
- Next-Generation Parsing Technology - Cloud Parsing
- Complete mysql offline installation in 5 minutes
- Growth: IT Operations Trends Report
- The method of using ROS1 bag under ROS2
- Cloud computing - osi seven layers and TCP\IP protocol
- What is the website ICP record?
- sql server 重复值在后面计数
- 618, you may be able to wake up a little bit
猜你喜欢

VRRP概述及实验

Take you in-depth understanding of cookies

What are some things that you only know when you do operation and maintenance?

LeetCode刷题记录(2)

One-arm routing experiment and three-layer switch experiment

BIO,NIO,AIO实践学习笔记(便于理解理论)

Problems encountered in installing Yolo3 target detection module in Autoware
![[Problem has been resolved]-Virtual machine error contains a file system with errors check forced](/img/07/1222a44dd52b359bf7873e6f3b7ebf.png)
[Problem has been resolved]-Virtual machine error contains a file system with errors check forced

VRRP overview and experiment

从“双卡双待“到”双通“,vivo率先推动DSDA架构落地
随机推荐
Teach you simple steps to achieve industrial raspberries pie properly installed RS232 USB drive
Mina's long and short connections
Transformer详细解读与预测实例记录
Shadowless Cloud Desktop
Does flink cdc currently support Gauss database sources?
Growth: IT Operations Trends Report
Proprietary host CDH
User and user group management, file permission management
Billions of IT operations in the market, the product by strength to speak
CIPU, what impact does it have on the cloud computing industry?
ES2020新特性
This is indeed the best article on microservice architecture I have read!
What should I do if the SSL certificate prompts that it is expired or invalid?
js dynamically get screen width and height
Will intelligent operation and maintenance replace manual operation and maintenance?
Advantages of overseas servers
带你深入了解Cookie
BIO, NIO, AIO practical study notes (easy to understand theory)
Network Troubleshooting Basics - Study Notes
H5 的浏览器存储