当前位置:网站首页>Pointer concept & character pointer & pointer array yyds dry inventory
Pointer concept & character pointer & pointer array yyds dry inventory
2022-07-03 22:26:00 【Mango_ Mango】
1. The concept of pointer
1. A pointer is a variable , It's used to store the address , The address uniquely identifies a piece of memory space
2. The size of the pointer variable is fixed as 4/8 Bytes (32/64 Bit platform )
3. Pointers are typed , The type of pointer determines the pointer ± Integer step size , Pointer dereference permission
2. Character pointer
Because constant strings cannot be modified , So you can use const Better decoration , When compiling like this , If someone changes , Just report the mistake directly
Exercises
Print structure
str1 and str2 are not same
str3 and str4 are same
reason :
3. Pointer array - It's an array
Pointer array stores the array name of integer array
It's like a two-dimensional array ,
parr[i] : Get the subscript i The starting address of the array , Equivalent to getting the array name ,
parr[i][j]: Get the subscript i The subscript in the array of is j The elements of
边栏推荐
- Electronic tube: Literature Research on basic characteristics of 6j1
- Harbor integrated LDAP authentication
- pycuda._ driver. LogicError: explicit_ context_ dependent failed: invalid device context - no currently
- BUUCTF,Misc:LSB
- Cesium terrain clipping draw polygon clipping
- AST (Abstract Syntax Tree)
- Blue Bridge Cup Guoxin Changtian single chip microcomputer -- software environment (II)
- Rest参考
- Teach you to easily learn the type of data stored in the database (a must see for getting started with the database)
- The 14th five year plan for the construction of Chinese Enterprise Universities and the feasibility study report on investment Ⓓ 2022 ~ 2028
猜你喜欢
Bluebridge cup Guoxin Changtian single chip microcomputer -- hardware environment (I)
The overseas listing of Shangmei group received feedback, and brands such as Han Shu and Yiye have been notified for many times and received attention
Teach you to easily learn the type of data stored in the database (a must see for getting started with the database)
Leetcode: a single element in an ordered array
Bluebridge cup Guoxin Changtian single chip microcomputer -- detailed explanation of schematic diagram (IV)
Electronic tube: Literature Research on basic characteristics of 6j1
[Android reverse] application data directory (files data directory | lib application built-in so dynamic library directory | databases SQLite3 database directory | cache directory)
Can you draw with turtle?
Some 5000+ likes, the development notes of a director of cosmic factory, leaked
The 2022 global software R & D technology conference was released, and world-class masters such as Turing prize winners attended
随机推荐
WiFi 2.4g/5g/6g channel distribution
China HDI market production and marketing demand and investment forecast analysis report Ⓢ 2022 ~ 2028
6.0 kernel driver character driver
320. Energy Necklace (ring, interval DP)
Is it safe and reliable to open an account and register for stock speculation? Is there any risk?
How about agricultural futures?
Programming language (2)
Buuctf, web:[geek challenge 2019] buyflag
Development trend and market demand analysis report of China's energy storage battery industry Ⓩ 2022 ~ 2028
4 environment construction -standalone ha
Why should enterprises do more application activities?
WFC900M-Network_ Card/Qualcomm-Atheros-AR9582-2T-2R-MIMO-802.11-N-900M-high-power-Mini-PCIe-Wi-Fi-Mod
AST (Abstract Syntax Tree)
2022 G3 boiler water treatment registration examination and G3 boiler water treatment examination papers
LeetCode 540. A single element in an ordered array
2022 high altitude installation, maintenance and removal of examination question bank and high altitude installation, maintenance and removal of examination papers
SDNU_ ACM_ ICPC_ 2022_ Winter_ Practice_ 4th [individual]
English topic assignment (28)
pycuda._ driver. LogicError: explicit_ context_ dependent failed: invalid device context - no currently
IPhone development swift foundation 08 encryption and security