This article is a mirror article of machine translation, please click here to jump to the original article.

View: 12899|Reply: 0

[C] void pointer basic

[Copy link]
Posted on 12/11/2015 4:53:31 PM | | |
void pointer
The concept of void pointer: it is a typeless pointer that can point to any type of data, it can be called a generic pointer or a generic pointer
Some things to note about the void pointer:
1. In C language, you can use void pointer instead of other types of pointers at any time, and void pointers can point to variables of any data type
2. If you use the void pointer to obtain the variable it points to, you need to convert the strong type of the void pointer to a data type pointer that matches the same variable type
3. Any type of pointer can be directly assigned to the void pointer without strong type conversion





Previous:【High Speed】C# IP address segment port multi-threaded scanner
Next:The student information of a certain school was leaked by the telecommunications "campus network", handled a number of businesses and was blacklisted
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com