In this book we use the second style and place the * with the pointer variable name.
在本书中,我们将采用第二种声明风格:将符号* 紧贴着指针变量名放置。
Listing 1. Get file row pointer and initialize return variable.
列表1.获得文件行指针并初始化返回变量。
In this example, line 6 will cause a null pointer exception because the variable actions has not been initialized.
在这个例子中,第6行将产生一个null指针异常,因为变量actions还没有初始化。
So, in this function, we are using the back chain pointer, the link register save area, and one local variable.
所以,在这个函数中,我们使用了回链指针、链接寄存器保存区和一个本地变量。
In contrast, an OCG compiler has comprehensive information about every variable, register, and pointer throughout the entire program.
相反,OCG编译器对整个程序中的每个变量、寄存器以及指针信息都有全面的了解。
Pointer to a variable to receive the time stamp.
指针指向一个变量去接收时间戳。
Local static pointer variable is not thread safe?
静态局部变量的指针不是线程安全的?
If the pointer was set in a fixed block, the variable to which it points may no longer be fixed.
如果将指针设置在固定的块中,它所指向的变量可能不再是固定的。
When a long string variable is assigned a string constant, the string pointer is assigned the address of the memory block generated for the string constant.
当一个串变量被赋予一个串常量时,串指针被赋予串常量内存块的地址。
In standard c, the effect of this is to forbid the use of the address of a thread local variable as an initializer for an object or pointer.
在标准c中,这种作法的效果是禁止将线程本地变量的地址用作对象或指针的初始值设定项。
All subsequent arguments are accessed by adding the size of a dword variable to the stack pointer (that is, esp + 12, esp + 16, and so on).
在堆栈指针上加上双字变量的大小(即esp +12、esp +16等等),就可以访问所有后续参数。
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.
但是,这个方法将所选函数的指针复制到一个局部变量中,然后用function对象的call方法调用这个函数。而不是直接调用它。
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).
因为在堆栈中压入一个变量会让堆栈指针移动一个双字,所以给堆栈指针加4(双字的大小)(第32行)。
If you have a pointer to a structure and the value of the pointer is correct, every member variable of the structure will show the correct value.
如果您有指向结构的指针而且指针的值是正确的,那么结构的每个成员变量都将显示正确值。
An array variable holds a pointer to the data constituting the array elements and the rank and length information, and an assignment copies only this pointer.
数组变量持有一个指针,它指向构成数组元素的数据及秩和长度信息,赋值语句仅复制此指针。
Delegate is a reference pointer to a method. It allows us to treat method as a variable and pass method as a variable for a callback.
委托是一个方法的引用指针。它允许我们将方法作为一个变量并传递方法作为回调函数的一个变量。
The side effect of the subprogram is produced by using public variable, or static variable, or pointer parameter in C Program.
在C语言子程序中由于使用了全局变量,或是使用了静态变量,或是使用了指针参数,从而产生副作用。
When you assign one object variable to another, or pass an object variable to a procedure, only the reference pointer is copied.
当将一个对象变量赋给另一个,或传递一个对象变量到过程,仅有引用指针被复制。
In order to statically analyze buffer overflow, efficient and precise pointer analysis must be performed to make certain what target buffer a pointer variable point to.
为了进行静态缓冲区溢出分析,必须首先进行高效而精确的指针分析,以确定指针可能指向的目标缓冲区。
Why must my global variable be declared as a pointer?
为什么我的全局变量必须声明为指针?
You can initialize a pointer by using an array, a string, a fixed-size buffer, or the address of a variable.
可通过使用数组、字符串、大小固定的缓冲区或变量地址初始化指针。
Both the variable type and the formal parameter type are some variety of pointer-to-wide char.
变量类型和形参类型均是某种指向宽字符的指针。
The solution is to cast the address of the floating point variable to a pointer to an int, which is then de-referenced as shown below.
解决方案是将浮点变量的地址强制转换成一个指向整型类型的指针,如下所示。
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.
函数pthread_cond_wait主要就是用于阻塞线程的,它有两个参数;第一个是一个指向条件变量的指针,第二个是一个锁定了的互斥量。
An array variable holds a pointer to an array object, which holds the array elements and the rank and length information.
数组变量保存指向数组对象的指针,而数组对象保存的是数组元素、秩和长度信息。
Notice that the pointer points to the lowest addressed byte of the variable.
注意,该指针指向变量的最低地址字节。
Using CONSTANT is more risky because if you forget to use the extra level of indirection, you could potentially access the import address table's pointer to the variable - not the variable itself.
使用CONSTANT的风险更大,因为如果忘记使用额外级别的间接寻址,则访问的有可能是指向变量的导入地址表的指针,而不是变量本身。
In many null-pointer exceptions, the true bug occurs where the variable is actually assigned to null.
在许多空指针异常中,真正的错误出现在变量被赋为空值的地方。
In many null-pointer exceptions, the true bug occurs where the variable is actually assigned to null.
在许多空指针异常中,真正的错误出现在变量被赋为空值的地方。
应用推荐