您可能会忘了跟踪所有指针(指向这些内存位置),并且某些内存段没有释放,还保持分配给该程序。
You might forget to keep track of all the pointers (pointing to these memory locations), and some of the memory segments are not freed and stay allocated to the program.
基指针引用进程的数据段,而且永远是特定于进程的。
Base Pointers refer to data sections of the process, and are always process specific.
如果是在操纵指针的话,就可能产生段错误。
If we were manipulating Pointers we'd probably end up with a segfault.
> Okay. This code allocates two pointers which can point to integers.
>,好的,这段代码分配两个指针,可以指向整型数。
> Okay. Well, this code allocates a new integer pointee and this part sets x to point to it.
>,好的,呃,这段代码分配一个新的整型指针数据,这部分让x指向它。
应用推荐