In this example, if the Map on line 1 does not contain the person named "Bob," a null pointer exception will result on line 5 when the person is asked for his name.
在这个例子中,如果第1行的Map不包括一个名为“bob”的人,那么在第5行询问person的名字时就会出现null指针异常。
This function calculates the difference between two jiffies values, and then provides the result to the user through a user-space pointer.
这个函数会计算这两个jiffies值之间的差值,然后通过一个用户空间指针将结果提供给用户。
The fetch function sets the result set pointer to the next row.
fetch函数将结果集指针指向下一行。
Note that such stale pointer accesses do not always result in access violations.
请注意,这种陈旧的指针访问并不总是在访问冲突的结果。
Null pointer errors are usually the result of one or more programmer assumptions being violated.
空指针错误通常是一个或多个程序员假设出错的结果。
This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention.
注意你的引入函数申明。函数调用类型不一致会导致此问题。
The reason C and C++ never adopted nested functions is because in order to make capture work, you need additional information, with the result that a pointer to function becomes more complex.
C和c++的原因从未采用嵌套函数是因为为了使捕获的工作,你需要额外的信息,其结果是一个指针函数变得更加复杂。
This warning indicates that the result of a pointer dereference is being ignored, which raises the question of why the pointer is being dereferenced in the first place.
此警告意味着取消引用指针所带来的后果被忽略,这会产生一个问题,那就是为何在第一个位置取消引用指针。
On some computers, it is possible to dereference the null pointer and the result is null, permitting execution to continue.
在某些计算机上,它可能取消引用空指针,结果是空的,允许继续执行。
To correct the defect, assign the result of the reallocation function to a temporary, and then replace the original pointer after successful reallocation.
若要更正此缺陷,请将重新分配函数的结果赋给一个临时变量,然后在重新分配成功后恢复原始指针。
The addition operation does not throw an exception if the result is too large to represent as a pointer on the specified platform.
如果结果太大,无法在指定平台上以指标表示,加法运算不会掷回例外状况。
The addition operation does not throw an exception if the result is too large to represent as a pointer on the specified platform.
如果结果太大,无法在指定平台上以指标表示,加法运算不会掷回例外状况。
应用推荐