UMBC CMSC 201
Fall '06

CSEE | 201 | 201 F'06 | lectures | news | help

Operators on Pointers

The two fundamental pointer operators are

Example

NULL

The constant NULL represents a "pointer to nowhere". Thus, *NULL is not a meaningful concept and there is no type associated with NULL.

NULL is usually represented by 0 -- the address of the first byte in memory.

Since most C compilers do not put in code to check that your program is not trying to access the contents of the null pointer, you can generate tricky bugs by doing so.


CSEE | 201 | 201 F'06 | lectures | news | help

Tuesday, 22-Aug-2006 07:14:16 EDT