UMBC CMSC 201 Fall '05
CSEE | 201 | 201 F'05 | lectures | news | help

Operators on Pointers

The two fundamental pointer operators are



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'05 | lectures | news | help

Sunday, 25-Sep-2005 12:06:08 EDT