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

View: 18507|Reply: 3

[C] The essence of the C language pointer

[Copy link]
Posted on 12/9/2015 7:25:15 PM | | |
The following is an introduction to the pointer learning of C language, which ones should be paid attention to:
1. When learning C language, pointers are the essence of C language, and to judge whether your C language is good or not, you need to use your pointers.
2. Pointer is a data type of C language, and it is also a feature of C language, because it is flexible and changeable, if you use it well, you can make the program concise, compact, and efficient.
3. The concept of pointers: all data is stored in memory. A byte in memory is generally called a memory unit, and different data types occupy different memory cells.
4. When learning pointers, you must be clear about the pointer and pointer variables from the beginning, otherwise you will not know what is going on when you learn the advanced pointers later.
5. Paragraph error, this is the most annoying mistake of all programmers, because he gives you too few error prompts. Just a sentence of segmentation fualt, I have no idea what the problem is.
Here are his four possibilities: a operation empty pointer b operation address does not exist in memory c operation system-protected memory d modify the contents of the constant area
  How to avoid: Variable arrays should be initialized, and arrays should not be operated out of bounds
  Solution: A constantly comments on the code and debugs the possible errors step by step. If you see a signal sisegv prompt, make sure there is a problem here, beginners are generally caused by out-of-bounds operations, of course, other situations are not ruled out.





Previous:Set a background image for Visual Studio 2013 or VS2010, it's cool!
Next:In the 360 browser, OT appears; adapp", "click":"0"
Posted on 12/9/2015 8:21:45 PM |
Posted on 12/9/2015 11:08:34 PM |
I often hear the pointers of the C language
Posted on 1/9/2018 8:34:12 PM |

Thank you for sharing   
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