What is NULL pointer?

What is NULL pointer?

A null pointer does not point to any object.

NULL and 0 are interchangeable in pointer contexts.Usage of NULL should be considered a gentle reminder that a pointer is involved.
It is only in pointer contexts that NULL and 0 are equivalent. NULL should not be used when another kind of 0 is required.

A pointer that points to a no valid location is known as null pointer. Null pointers are useful to indicate special cases. For example, no next node pointer in case of a linked list. An indication of errors that pointers returned from functions.
Difference between Function to pointer and pointer to function
A pointer to a function is a pointer that points to a function. A function pointer is a pointer that either has an indeterminate value, or has a null pointer value, or points to a function
#pragma statements
The #pragma Directives are used to turn ON or OFF certain features. They vary from compiler to compiler. Examples of pragmas are:.....
Advantages of using macro
Macros substitute a function call by the definition of that function. This saves execution time to a great extent.....
Post your comment