设置一个指针变量导致未定义的行为。
在本书中,我们将采用第二种声明风格:将符号* 紧贴着指针变量名放置。
In this book we use the second style and place the * with the pointer variable name.
对指针变量以及过程间的数据的分析是嵌套式语言全程分析的关键问题之一。
The analysis of pointer variable and inter procedure data is one of the key problem in the whole program analysis of nested language.
然而,它是这两个函数的相互作用,利用一个全球性的指针变量叫做namestr,它会导致渗漏和不断摆动的指针。
However, it is the interaction of these two functions and using a global pointer variable called namestr that causes both the leak and the dangling pointer.
所以,在这个函数中,我们使用了回链指针、链接寄存器保存区和一个本地变量。
So, in this function, we are using the back chain pointer, the link register save area, and one local variable.
当您将一个变量赋值给任何列表时,您就为该列表分配了一个指针或引用。
When you assign any list to a variable, you're really assigning a pointer or reference to the list.
指针赋值只应在其他指针或长型变量之间执行。
Pointer assignment should only be performed between other Pointers or variables of type long.
它对存储局部变量的位置进行重新排序,并复制函数参数中的指针,以便它们也在任何数组之前。
It reorders where local variables are stored, and copies Pointers in function arguments, so that they're also before any arrays.
全局变量不会被分配在寄存器上,修改全局变量需要通过指针或者调用函数的方式间接进行。
Global variables are never allocated to registers. Global variables can be changed by assigning them indirectly using a pointer, or by a function call.
我分配了一个变量,它碰巧是一个指针,它还是一个变量,谁知道它里面是什么?
I've allocated a variable, it happens to be a pointer; it's still a variable, who know what's in it, right?
因为在堆栈中压入一个变量会让堆栈指针移动一个双字,所以给堆栈指针加4(双字的大小)(第32行)。
Since pushing a variable essentially moves the stack pointer by a dword, the stack pointer is adjusted by adding 4 (the size of a dword) to it (line 32).
从测试引擎(稍后就会安装它)数据区域中的全局变量获取当前最为结果储存但是当作整数使用的文件行指针。
Gets the current file row pointer, stored as an object but used as an integer, from the global variable in the data area for the test engine (this will be set up later).
列表1.获得文件行指针并初始化返回变量。
Listing 1. Get file row pointer and initialize return variable.
在这个例子中,第6行将产生一个null指针异常,因为变量actions还没有初始化。
In this example, line 6 will cause a null pointer exception because the variable actions has not been initialized.
函数pthread_cond_wait主要就是用于阻塞线程的,它有两个参数;第一个是一个指向条件变量的指针,第二个是一个锁定了的互斥量。
The function primarily used for this is pthread_cond_wait . It takes two arguments; the first is a pointer to a condition variable, and the second is a locked mutex.
lpPreviousCount是指向上一个信号量计数器返回时的变量的指针。
LpPreviousCount is the pointer to the variable where the previous semaphore count is returned.
当你手动声明一个指针是,你可以说char,*,变量名字,因为那是我早些时候做的事情,但是我们叫它为字符串。
When you declare a pointer yourself manually, you do say char * the variable name because recall that's the same thing that we did earlier but we called it instead string.
当strdup在foo中被调用,这个namestr变量值就会被覆写,从而丢失main中内存分配的指针,导致渗漏。
When strdup is called in foo , the namestr variable value is overwritten, thereby losing the pointer to the memory allocated in main , and that causes the leak.
由于指针、int和long在64位系统上大小不再相同了,因此根据这些变量是如何赋值和在应用程序中使用的,可能会出现问题。
Since pointer, int, and long are no longer the same size on 64-bit systems, problems may arise depending on how the variables are assigned and used within an application. A few tips in this regard.
指向该类型变量的指针被传递到process_args函数,返回该指针时,它包含从参数处理过程获得的值。
A pointer to a variable of this type is passed to the process_args function, and on return, the variable contains values obtained from arg processing.
编程基础(变量,数据类型,引用,指针,作用域,错误处理,迭代,核心算法-搜索,排序等)
The basics of Programming (variables, data types, references, pointers, scope, error handling, iteration, core algorithms - searching, sorting, etc.)
无论是处于32位模式下还是处于64位模式下,都应当使用长型变量执行所有指针算法。
Any pointer arithmetic should be performed using variables of type long regardless if in 32-bit or 64-bit mode.
在许多空指针异常中,真正的错误出现在变量被赋为空值的地方。
In many null-pointer exceptions, the true bug occurs where the variable is actually assigned to null.
它将工作包id(组件ID)和一个指针传递给工作流变量。
It passes the work package ID (component ID), plus a pointer, to workflow variables.
它为每个对C8051架构最为有效的变量指针定义了一组地址空间,无需从程序员那里获得特殊指示。
It defines a set of address Spaces for each pointer variable that is optimally efficient for the C8051 architecture, without any specific direction from the programmer.
相反,OCG编译器对整个程序中的每个变量、寄存器以及指针信息都有全面的了解。
In contrast, an OCG compiler has comprehensive information about every variable, register, and pointer throughout the entire program.
指针指向一个变量去接收时间戳。
但是,这个方法将所选函数的指针复制到一个局部变量中,然后用function对象的call方法调用这个函数。而不是直接调用它。
However, the method copies a pointer to the selected function into a local variable, and then calls the function with the call method of the function object, rather than calling it directly.
要在程序中使用一个变量来容纳这种链表,您需要做的只是使用一个指向类型struct ll_int _ node的指针。
To have a variable hold this kind of list in a program, all you need is to have a pointer that points to type struct ll_int_node.
因为它了解每个变量的使用频率以及其所依靠的变量是哪个,所以它能够优化指针,并将对象安置在最为有效的存储空间内。
Since it knows how frequently each variable is used and which variables are dependent, it can optimize pointers and position objects in the most efficient memory spaces.
应用推荐