concept NULL in category ios

appears as: NULL
Objective-C Fundamentals

This is an excerpt from Manning's book Objective-C Fundamentals.

Sometimes you want to detect if a pointer variable is currently pointing at anything of relevance. For this purpose, you’ll most likely initialize the pointer to one of the special constants NULL or nil:

int *x = NULL;
NSString *y = nil;

Both constants are equivalent to the value 0 and are used to indicate that the pointer isn’t currently pointing to anything. The Objective-C convention is to use nil when referring to an object and relegating NULL for use with older C-style data types.

With a standard C-style pointer, the special value NULL indicates the absence of a value. nil represents the very same concept, except applied to a variable that’s designed to point to an Objective-C object.