当前位置:网站首页>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
边栏推荐
- Report on the development strategy of China's engineering bidding agency and suggestions for the 14th five year plan Ⓙ 2022 ~ 2028
- Ten minutes will take you in-depth understanding of multithreading. Multithreading on lock optimization (I)
- How to solve the problem of computer networking but showing no Internet connection
- Investment analysis and prospect trend prediction report of China's boron nitride industry Ⓨ 2022 ~ 2028
- The latest analysis of crane driver (limited to bridge crane) in 2022 and the test questions and analysis of crane driver (limited to bridge crane)
- Niuke winter vacation training camp 4 g (enumeration optimization, Euler power reduction)
- On my first day at work, this API timeout optimization put me down!
- WiFi 2.4g/5g/6g channel distribution
- 4 environment construction -standalone ha
- China HDI market production and marketing demand and investment forecast analysis report Ⓢ 2022 ~ 2028
猜你喜欢

Can you draw with turtle?

How to restore the factory settings of HP computer

Firefox set up proxy server

The difference between SRAM and DRAM
![[flax high frequency question] leetcode 426 Convert binary search tree to sorted double linked list](/img/db/b992d2b461ca17652518a1511b4947.gif)
[flax high frequency question] leetcode 426 Convert binary search tree to sorted double linked list
![[template summary] - binary search tree BST - Basics](/img/78/782129abea06c8e3bef69a121cbce0.jpg)
[template summary] - binary search tree BST - Basics

Niuke winter vacation training camp 4 g (enumeration optimization, Euler power reduction)

Programming language (1)

Exness: the Central Bank of England will raise interest rates again in March, and inflation is coming

2022 safety officer-a certificate registration examination and summary of safety officer-a certificate examination
随机推荐
Analysis report on the development trend and Prospect of global and Chinese supercontinuum laser source industry Ⓚ 2022 ~ 2027
Tkinter Huarong Road 4x4 tutorial III
LeetCode 1647. Minimum deletion times of unique character frequency
On my first day at work, this API timeout optimization put me down!
Pan Yueming helps Germany's Rochester Zodiac custom wristwatch
Report on the development strategy of China's engineering bidding agency and suggestions for the 14th five year plan Ⓙ 2022 ~ 2028
IPhone development swift foundation 09 assets
Wisdom tooth technology announced that it had completed the round D financing of US $100million and had not obtained a valid patent yet
pycuda._ driver. LogicError: explicit_ context_ dependent failed: invalid device context - no currently
Leetcode problem solving - 230 The k-th smallest element in the binary search tree
The latest analysis of R1 quick opening pressure vessel operation in 2022 and the examination question bank of R1 quick opening pressure vessel operation
[dynamic planning] counting garlic customers: the log of garlic King (the longest increasing public subsequence)
Farmersworld farmers world, no faith, how to talk about success?
4 environment construction -standalone ha
How to solve the problem of requiring a password when accessing your network neighborhood on your computer
Introduction to kubernetes
SDNU_ ACM_ ICPC_ 2022_ Winter_ Practice_ 4th [individual]
2022 high altitude installation, maintenance and removal of examination question bank and high altitude installation, maintenance and removal of examination papers
Pooling idea: string constant pool, thread pool, database connection pool
How can enterprises and developers take advantage of the explosion of cloud native landing?