当前位置:网站首页>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 .
边栏推荐
- The latest tank battle 2022 - Notes on the whole development -2
- SM整合原来这么简单,步骤清晰(详细)
- 研发效能生态完整图谱&DevOps工具选型必看
- AI应用第一课:C语言支付宝刷脸登录
- 容器安全开源检测工具--问脉 VeinMind(镜像后门、恶意样本、敏感信息、弱口令等)
- [from_bilibili_DR_CAN][【Advanced控制理论】9_状态观测器设计][学习记录]
- Xiaobai high salary shortcut Qt development game Snake
- Visual Basic .Net 如何获取命令参数
- Pytorch learning notes
- 传奇服务端如何添加地图
猜你喜欢

Diagram of odoo development tutorial

Qml控件:ComboBox

C语言宏#define命令练习

365天挑战LeetCode1000题——Day 037 元素和小于等于阈值的正方形的最大边长 + 满足条件的子序列数目

7.2-function-overloading

C语言函数实现输出I love you

Pytorch learning notes

How mongodb inserts, deletes and updates documents

Arfoundation starts from scratch 3- create an arfoundation project

QtCreator+CMake编译器设置
随机推荐
后置通知的流程分析与功能实现有哪些内容你还记得吗?
D3d Shader Instruction
Self join and joint query of MySQL
Getting started with solidity
ARFoundation从零开始3-创建ARFoundation项目
C语言用指向指针的指针对n个整数排序
Diagram of odoo development tutorial
Teardown's method of lifting the time limit
Numpy Foundation
CryEngine技术
Scikit learn -- steps and understanding of machine learning application development
Apache POI implements excel import, read data, write data and export
优炫数据库启动失败,报网络错误
This article takes you to understand the implementation of surround notification @around and final notification @after
The latest tank battle 2022 - Notes on the whole development -2
01-01-osg GL3 环境搭建
The latest tank battle 2022 - full development notes-3
7.1-default-arguments
SM integration is as simple as before, and the steps are clear (detailed)
How to add traffic statistics codes to the legendary Development Zone website