当前位置:网站首页>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 .
边栏推荐
- C language handwritten qq-ai version
- 深度学习刷SOTA的一堆trick
- TCP三次握手四次挥手
- About the configuration and use of thymeleaf
- Xiaobai high salary shortcut Qt development game Snake
- OCCT学习002-----环境搭建
- 365天挑战LeetCode1000题——Day 037 元素和小于等于阈值的正方形的最大边长 + 满足条件的子序列数目
- The method and detailed code of automatically pop-up and QQ group when players visit the website
- AttributeError: ‘module‘ object has no attribute ‘create_ connection‘
- Handwritten student management system
猜你喜欢

Getting started with arfoundation tutorial 10- plane detection and placement

Qt版的贪食蛇游戏项目

AUTOSAR from introduction to proficiency 100 lectures (78) -autosar-dem module

2022年泰迪杯数据挖掘挑战赛C题方案及赛后总结

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

手写学生管理系统

向往的开源之多YOUNG新生 | 从开源到就业的避坑指南来啦!

Diagram of odoo development tutorial
![[file download] easyexcel quick start](/img/fd/b3b08c67c5a81f0ab58c20653f9398.png)
[file download] easyexcel quick start

MySQL sorts the queried result set according to the specified sequence
随机推荐
Visual Basic .Net 如何获取命令参数
小鲁客栈---预告篇
直播预告|如何通过“智能边缘安全”提升企业免疫力?
Architecture analysis of three-tier project and parameter name injection of construction method
About the configuration and use of thymeleaf
Handwritten student management system
Unity metaverse (III), protobuf & socket realize multi person online
QtCreator+CMake编译器设置
研发效能生态完整图谱&DevOps工具选型必看
QML定制TabBar
2022年泰迪杯数据挖掘挑战赛C题方案及赛后总结
Unity3D - 物体太远看不见的问题
后置通知的流程分析与功能实现有哪些内容你还记得吗?
直播预告|如何节省30%人工成本,缩短80%商标办理周期?
Apache POI implements excel import, read data, write data and export
Webrtc audio anti weak network technology (Part 2)
APP常用跨端技术栈深入分析
OCCT学习002-----环境搭建
Young freshmen yearn for more open source | here comes the escape guide from open source to employment!
学习数据库的第一个程序