|
|
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"
|