当前位置:网站首页>C language_ Structure pointer variable introduction
C language_ Structure pointer variable introduction
2022-07-26 13:54:00 【Linux siege lion】
Structure pointer variable introduction
01—— Concept introduction
memories :
The pointer is the address !
A pointer variable is a variable that holds an address !
Structures are also variables !
There are two ways to access variables :1. Variable name directly access 2. Address indirect access !
Previous cases , It is accessed directly by variable name .
Accessing the structure through its variable address requires a variable to save this address : This is the same as the pointer mentioned before , It's the same thing . Only the type of pointer is structure .

02—— Access the structure content through the structure pointer


Be careful :
Variable name access : Use dot operator
Address access : use “->” Operator

边栏推荐
- Using the geoprocessor tool
- 多态案例-制作饮品
- Brief introduction of reflection mechanism
- .net6 encounter with the League of heroes - create a game assistant according to the official LCU API
- Mobile dual finger scaling event (native), e.originalevent.touches
- POM file details
- LCL三相pwm整流器(逆变器)
- Ten thousand words long article, talking about the blueprint of enterprise digital modeling
- IDEA(warning)No artifacts configured
- Docker swarm cluster builds highly available MySQL active and standby
猜你喜欢

Redis learning notes

Tianyi cloud web application firewall (edge cloud version) supports the detection and interception of Apache spark shell command injection vulnerabilities

飞盘,2022年“黑红”顶流

大脑带来的启发:深度神经网络优化中突触整合原理介绍

php使用sqlserver

Official announcement! Edweisen group and Baidu xirang reached a deep co creation cooperation

Basic sentence structure of English ----- origin

404 pages and routing hooks
![[NOIP2003 普及组]栈](/img/95/871b1c6f492b467bffd25912304b44.gif)
[NOIP2003 普及组]栈

Add a display horizontal line between idea methods
随机推荐
Subscription and publication of messages
Docker swarm cluster builds highly available MySQL active and standby
Intercept the coordinate points (four point coordinates of the face frame) face image from the marked XML file and save it in the specified folder
Ten thousand words long article, talking about the blueprint of enterprise digital modeling
Pass parameters to the routing component
MySQL sets auto increment for existing primary keys
Comparator (interface between comparable and comparator)
Sequence traversal of binary tree (implemented in C language)
Use the requests library to crawl web pages
上一次听到易趣,还是上一次
In 2022, we "sent away" so many Internet products in only one month
Parent class reference to child class (parent class reference points to child class object)
Detailed explanation of factory mode
The shell script in Jenkins fails to execute but does not exit by itself
Control the probability of random winning [C | random]
SuperMap iclient for leaflet loads Gauss Kruger projection three-dimensional zonation CGCS2000 geodetic coordinate system WMTs service
Solve the problem that JUnit of idea console cannot be input with scanner
Codeforces round 810 (Div. 2) [competition record]
Photoshop (cc2020) unfinished
.net6 encounter with the League of heroes - create a game assistant according to the official LCU API