当前位置:网站首页>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 .
边栏推荐
- Is Huatai Securities an AA level securities company? How about this company? Is it safe to open an account?
- Unity metaverse (III), protobuf & socket realize multi person online
- VirtualBox has expanded the capacity of virtual hard disk (without modifying the original data)
- C语言函数实现输出I love you
- OCCT学习003-----MFC单文档工程
- NumPy基础
- 千人规模互联网公司研发效能成功之路
- 学习数据库的第一个程序
- QT学习:使用JSON/XML等非ts文件实现多语言国际化
- TMUX essays
猜你喜欢

使用Jstack、Jconsole和jvisualvm进行死锁分析

01-01-osg GL3 环境搭建

7.2-function-overloading

关于servlet中实现网站的页面跳转

Young freshmen yearn for more open source | here comes the escape guide from open source to employment!

Jackson解析JSON详细教程
![[file download] easyexcel quick start](/img/fd/b3b08c67c5a81f0ab58c20653f9398.png)
[file download] easyexcel quick start

About realizing page Jump of website in Servlet

Deep learning brush a bunch of tricks of SOTA

CMU15-213 Malloc Lab实验记录
随机推荐
tmux随笔
TCP three handshakes and four waves
Webrtc audio anti weak network technology (Part 2)
scikit-learn——机器学习应用开发的步骤和理解
Visual Basic .Net 如何获取命令参数
Mysql的自连接和联合查询
sql日志
Cache penetration, cache breakdown, cache avalanche and Solutions
QtCreator+CMake编译器设置
Xiaobai high salary shortcut Qt development game Snake
向往的开源之多YOUNG新生 | 从开源到就业的避坑指南来啦!
玩家访问网站自动弹窗加QQ群方法以及详细代码
Qml类型:State 状态
"Invisible Bridge" built in the free trade economy: domestic products and Chinese AI power
01-01-osg GL3 环境搭建
CMake 设置vs启动运行环境路径
7.2-function-overloading
为啥谷歌的内部工具不适合你?
About realizing page Jump of website in Servlet
AI应用第一课:C语言支付宝刷脸登录