In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces the relevant knowledge of "what is the concept of multi-level pointer in c language". The editor shows you the operation process through an actual case, and the operation method is simple, fast and practical. I hope this article "what is the concept of multi-level pointer in c language" can help you solve the problem.
Multistage pointer
If the pointer variable p points to the variable Q, and the variable Q is not a pointer variable, then the variable p is called a first-order pointer variable. If the pointer variable s points to the first-level pointer variable Q, that is, the value of the pointer variable s is the address of a first-level pointer variable, it is called a second-level pointer variable. And so on, you can define multi-level pointer variables.
In theory, three-level, four-level or even more multi-level pointer variables can be used in the program, but in practical application, the first-level and second-level pointer variables are widely used. The second-level pointer variable is taken as an example to illustrate the usage of multi-level pointer.
General form of secondary pointer variable definition:
Type specifier * * pointer variable name
Description:
(1) the "*" in the secondary pointer variable definition is not part of the variable name, but only indicates that the secondary pointer variable is defined.
(2) the pointer operation and operation described in the previous article are equally effective for secondary pointers.
For example:
Int * * pjingheq dwelling 10
QQ _ roomd
PacificQ
After the execution of the above three statements, the storage relationship of the variable pcentine qdir d is shown in the following figure.
This is the end of the introduction to "what is the concept of multi-level pointers in C language". Thank you for your reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.