|
|
|
|
|
|
|
Figure 17-4
Results of Assignment Statements |
|
|
|
|
|
|
|
|
stores the null pointer into intPtr. This statement does not cause intPtr to point to memory location zero; the null pointer is guaranteed to be distinct from any actual memory address. Because the null pointer does not point to anything, we diagram the null pointer as follows, instead of using an arrow to point somewhere: |
|
|
|
|
|
|
|
|
Instead of using the constant 0, many programmers prefer to use the named constant NULL that is supplied by the standard header file stddef.h: |
|
|
|
|
|