当前位置:网站首页>Pointer array & array pointer
Pointer array & array pointer
2022-07-02 03:15:00 【Mango_ Mango】
About arr[i][j] The understanding of the
*(*(arr+i)+j) == arr[i][j]
(arr+i): Is to find the first i The address of a location
*(arr+i): Find No. in the pointer array i Elements of position , This element is an array name
*(*(arr+i)+j): By array name ( The address of the first element of the array ) The offset j Length , You can find the starting position of the array name by dereferencing j Location data
Pointer array stores the name of character array

To print a string, you only need to provide the starting address , Print backwards from the starting position Print shaping requires dereference to get the value inside
4. Array pointer - Is a pointer
How to write array pointers
The type of pointer determines how many bytes it skips by adding or subtracting integers
Array name when transferring parameters , Will be demoted to the first element address
边栏推荐
- Baohong industry | four basic knowledge necessary for personal finance
- The video number will not be allowed to be put on the shelves of "0 yuan goods" in the live broadcasting room?
- 4. Find the median of two positive arrays
- [road of system analyst] collection of wrong topics in enterprise informatization chapter
- 使用 useDeferredValue 进行异步渲染
- PMP personal sprint preparation experience
- Force deduction daily question 540 A single element in an ordered array
- /silicosis/geo/GSE184854_scRNA-seq_mouse_lung_ccr2/GSE184854_RAW/GSM5598265_matrix_inflection_demult
- PHP array processing
- Jointly developed by nailing, the exclusive functions of glory tablet V7 series were officially launched
猜你喜欢

SAML2.0 笔记(一)

Verilog 避免 Latch

2022-2028 global encryption software industry research and trend analysis report

Named block Verilog

2022-2028 global human internal visualization system industry research and trend analysis report

Soul app released the annual report on generation Z behavior: nearly 20% of young people love shopping in the vegetable market

GB/T-2423. XX environmental test documents, including the latest documents

How to create an instance of the control defined in SAP ui5 XML view at runtime?

【JVM】创建对象的流程详解
![Find duplicates [Abstract binary / fast and slow pointer / binary enumeration]](/img/9b/3c001c3b86ca3f8622daa7f7687cdb.png)
Find duplicates [Abstract binary / fast and slow pointer / binary enumeration]
随机推荐
Mathematical calculation in real mode addressing
[staff] restore mark (Introduction to the use of restore mark | example analysis of Metaphone mark and restore mark)
Jointly developed by nailing, the exclusive functions of glory tablet V7 series were officially launched
[JS reverse series] analysis of a customs publicity platform
Global and Chinese markets for hand hygiene monitoring systems 2022-2028: Research Report on technology, participants, trends, market size and share
创业了...
Share the basic knowledge of a common Hongmeng application
2022 hoisting machinery command examination paper and summary of hoisting machinery command examination
C#联合halcon脱离halcon环境以及各种报错解决经历
What is the binding path of SAP ui5
buu_ re_ crackMe
Batch detect whether there is CDN in URL - high accuracy
[C Advanced] brother Peng takes you to play with strings and memory functions
Addition without addition, subtraction, multiplication and division (simple difficulty)
2022-2028 global human internal visualization system industry research and trend analysis report
Uniapp uses canvas to generate posters and save them locally
Start a business
verilog 并行块实现
spark调优
Delphi xe10.4 installing alphacontrols15.12