UMBC CMSC 201 Spring '02 CSEE | 201 | 201 S'02 | 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 S'02 | lectures | news | help

Monday, 01-Apr-2002 15:20:51 EST