Difference Between nil and NULL

nil is the literal null value for Objective-C objects,
NULL is the literal null value for arbitrary C pointers.

Main difference between nil & NULL is that you can send messages to nil, so you can use it in some places where NULL can't work.

No comments:

Post a Comment