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

View: 13684|Reply: 0

[C] After learning the pointer for several days, what is it used for, and why does he use it?

[Copy link]
Posted on 12/15/2015 3:39:38 PM | | |
C language pointers have many functions, in fact, to put it bluntly, it is to directly operate memory, or understand what are the advantages of directly operating memory
1. Higher efficiency, this is easy to understand, directly operating memory, the efficiency is bound to be higher
2. You can write more complex data structures, which is easy to understand, programmers can operate memory, and of course they can write flexible and complex data structures
3. Write a simple, compact and efficient program
In fact, to put it bluntly, it is to operate memory




Previous:Pointer method Input 3 integers and output them in order from smallest to largest
Next:The pointer method has N integers, so that the previous numbers move back M positions in order, and finally the M number becomes the previous M number
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