当前位置:网站首页>Xiaolu Inn - Trailer
Xiaolu Inn - Trailer
2022-07-29 05:21:00 【Xiaolu Inn】
Introduce
Prospective senior students , At present, Shenzhen “ Man on man ”, A migrant worker who tries to explain what he understands with the most accessible examples . At present, it is tentatively scheduled to precipitate for half a year, that is to say, it will only be serialized for half a year , Mainly record and share their daily precipitation of knowledge , Currently includes C/C++、QT、 Embedded software GUI design idea . Someone may ask why it is half a year , Because the current internship time is half a year , Then if the middle is dismissed for various reasons, the serial may also be terminated ...
Purpose
On the one hand, it's easier to find a job with your own personal blog. After all, it's a bonus ; On the other hand, I am really precipitating something , There is real calmness to study something , Maybe it's nothing in the eyes of some technical bulls ... But I think the real learning is not self understanding , But you can make it clear to others , So with the current blog serialization .
A trial lecture
Now it's a c Linguistic *a and &a Explanation of a typical problem of , The following explanation style is the style in the subsequent serial blog . If the following style cannot be accepted, there is no need to read the following blog ...
about C Linguistic * and & Maybe a lot of people know *a It means a pointer ;&a Express a The address of ; Then you can start to run it at this time , The following code :int a=10;int *b=&a;printf("&d\n",&a);printf("&d\n",*b)
After reading the output , If you know enough, you may not feel anything , But if you don't know enough, you may fall into doubt , Why are the results of the two different .
First of all, we need to understand the variable a The essence of , It is a storage unit , The storage unit itself is used as a container to store Something Also have their own identification , there Something It's called data , identification Called address . in other words a It can be either an address or a data , So how to determine the result of the visit when you visit ? That's all C The rules of language , stay C Specified in the language a According to the data 、&a Address .
Then let's see * a, Here is the stored a Medium Stored address Corresponding Storage unit Of data , That is to say : The current residence address of the wanted person I reported to the police is XX apartment 805 room , The place I report to the police here is equivalent to * a, I told the police the address , But is it the house of the address that the police want to catch ? Not at all , It's the person in the address that needs to be caught .
Then we are looking at the code snippet above , * b=&a, What I got here is a The address of , The final output * b The output is a Content, not a The address of , It's like the police arresting people , It's people to catch, not the house represented by the address . So the final printf(“&d\n”,&a) Output is a a Address , and printf(“&d\n”,*b); The output is a The content of .
Last
If you feel that the above trial lecture is understood and interested, you also want , I hope you can use your hands to pay attention , Follow up blog can also pay more attention , thank .
边栏推荐
- Unity metaverse (III), protobuf & socket realize multi person online
- 最新坦克大战2022-全程开发笔记-3
- 为啥谷歌的内部工具不适合你?
- 365天挑战LeetCode1000题——Day 037 元素和小于等于阈值的正方形的最大边长 + 满足条件的子序列数目
- 研发效能生态完整图谱&DevOps工具选型必看
- AI应用第一课:C语言支付宝刷脸登录
- C语言求字符串的长度
- Teardown's method of lifting the time limit
- webgl1.0下texture2D和texture2DProj区别
- Legend how to configure multiple versions of wechat updates on one server
猜你喜欢

Mysql把查询到的结果集按指定顺寻进行排序

365天挑战LeetCode1000题——Day 042 数组序号转换 + 相对名次 离散化处理

C语言用指向指针的指针对n个整数排序

ARFoundation从零开始5-AR图像跟踪

学习数据库的第一个程序

Webrtc audio anti weak network technology (Part 2)

The person who goes to and from work on time and never wants to work overtime has been promoted in front of me

How to add a map to the legendary server

后置通知的流程分析与功能实现有哪些内容你还记得吗?

自贸经济中架起的“隐形桥梁”:国货精品与中国AI力量
随机推荐
优炫数据库启动失败,报网络错误
Unity3D - 物体太远看不见的问题
什么是_GLIBCXX_VISIBILITY(default)
Jackson解析JSON详细教程
D3d Shader Instruction
玩家访问网站自动弹窗加QQ群方法以及详细代码
QT学习:使用JSON/XML等非ts文件实现多语言国际化
千人规模互联网公司研发效能成功之路
CMake 设置vs启动运行环境路径
365天挑战LeetCode1000题——Day 039 完全二叉树插入器 + 寻找峰值 II + 快照数组
为啥谷歌的内部工具不适合你?
The latest tank battle 2022 full development notes-1
基于注解的三层项目的改造及添加包扫描的方式
Functions in MySQL statements
The representation of time series analysis: is the era of learning coming?
OCCT学习002-----环境搭建
SM整合原来这么简单,步骤清晰(详细)
SM integration is as simple as before, and the steps are clear (detailed)
Soft link & hard link
365天挑战LeetCode1000题——Day 040 设计跳表 + 避免洪水泛滥 + 查找大小为 M 的最新分组 + 销售价值减少的颜色球