当前位置:网站首页>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
边栏推荐
- Leetcode week 4: maximum sum of arrays (shape pressing DP bit operation)
- Market layout planning and latest dynamic analysis report of China's smart public security industry Ⓕ 2022 ~ 2028
- Is the account opening of Guotai Junan Securities safe and reliable? How to open Guotai Junan Securities Account
- Can you draw with turtle?
- 股票炒股开户注册安全靠谱吗?有没有风险的?
- JS demo calculate how many days are left in this year
- js demo 計算本年度還剩下多少天
- Uboot migration
- Buuctf, misc: n solutions
- Cognitive fallacy: what is dimensional curse
猜你喜欢

4 environment construction -standalone ha

How to solve the problem of requiring a password when accessing your network neighborhood on your computer

webAssembly

How the computer flushes the local DNS cache

Unique in China! Alibaba cloud container service enters the Forrester leader quadrant

Farmersworld farmers world, no faith, how to talk about success?

Quick one click batch adding video text watermark and modifying video size simple tutorial

Pan Yueming helps Germany's Rochester Zodiac custom wristwatch

Buuctf, misc: n solutions

IPhone development swift foundation 09 assets
随机推荐
(POJ - 2912) rochambau (weighted concurrent search + enumeration)
[dynamic programming] Ji Suan Ke: Suan tou Jun breaks through the barrier (variant of the longest increasing subsequence)
[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)
BUUCTF,Misc:LSB
Can you draw with turtle?
JS demo calculate how many days are left in this year
js demo 计算本年度还剩下多少天
Supply and demand situation and market scale calculation report of China's portable energy storage power PES industry Ⓛ 2022 ~ 2028
regular expression
JS Demo calcule combien de jours il reste de l'année
Es6~es12 knowledge sorting and summary
油猴插件
webAssembly
[Android reverse] use DB browser to view and modify SQLite database (download DB browser installation package | install DB browser tool)
Rest参考
User login function: simple but difficult
How to solve win10 black screen with only mouse arrow
Opengauss database log management guide
Quick one click batch adding video text watermark and modifying video size simple tutorial
Team collaborative combat penetration tool CS artifact cobalt strike