C Tutorial NULL

Data types in C
Arrays in C
Pointers in C
Pointer Dereferencing
The & Operator

Uninitialized Pointers
Using Pointers
C Strings
String Code Example
Large Strings
Char type pointers





A pointer can be assigned the value 0 to explicitly represent that it does not currently

have a pointee. Having a standard representation for "no current pointee" turns out to be

very handy when using pointers. The constant NULL is defined to be 0 and is typically

used when setting a pointer to NULL. Since it is just 0, a NULL pointer will behave like

a boolean false when used in a boolean context. Dereferencing a NULL pointer is an error

which, if you are lucky, the computer will detect at runtime -- whether the computer

detects this depends on the operating system.

Want To Know more with

Video ???