当前位置:网站首页>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
边栏推荐
- Sed、Awk
- pycuda._ driver. LogicError: explicit_ context_ dependent failed: invalid device context - no currently
- 320. Energy Necklace (ring, interval DP)
- Teach you to easily learn the type of data stored in the database (a must see for getting started with the database)
- Classification and extension of OC
- Codeforces Round #768 (Div. 1)(A-C)
- BUUCTF,Misc:LSB
- Common problems in multi-threaded learning (I) ArrayList under high concurrency and weird hasmap under concurrency
- Plug - in Oil Monkey
- JS Demo calcule combien de jours il reste de l'année
猜你喜欢
Redis single thread and multi thread
Teach you how to run two or more MySQL databases at the same time in one system
Programming language (1)
To rotate 90 degrees clockwise and modify the video format
[SRS] build a specified version of SRS
Buuctf, misc: n solutions
How to switch between dual graphics cards of notebook computer
[Android reverse] use the DB browser to view and modify the SQLite database (copy the database file from the Android application data directory | use the DB browser tool to view the data block file)
Teach you to easily learn the type of data stored in the database (a must see for getting started with the database)
[template summary] - binary search tree BST - Basics
随机推荐
[actual combat record] record the whole process of the server being attacked (redis vulnerability)
Unique in China! Alibaba cloud container service enters the Forrester leader quadrant
Programming language (2)
Cognitive fallacy: Wittgenstein's ruler
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
Summary of basic knowledge of exception handling
JS demo calculate how many days are left in this year
JS Demo calcule combien de jours il reste de l'année
2022 G3 boiler water treatment registration examination and G3 boiler water treatment examination papers
Take you to master the formatter of visual studio code
Blue Bridge Cup Guoxin Changtian single chip microcomputer -- software environment (II)
js demo 計算本年度還剩下多少天
6.2 normalization 6.2.5 third normal form (3NF)
Exclusive interview with the person in charge of openkruise: to what extent has cloud native application automation developed now?
How to connect a laptop to a projector
Development trend and market demand analysis report of China's energy storage battery industry Ⓩ 2022 ~ 2028
LeetCode 1646. Get the maximum value in the generated array
Analysis report on the development prospect and investment strategy of global and Chinese modular automation systems Ⓟ 2022 ~ 2027
How to solve the problem of computer networking but showing no Internet connection
Report on the current situation and development trend of ethoxylated sodium alkyl sulfate industry in the world and China Ⓞ 2022 ~ 2027