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.
|
#pragma statementsThe #pragma Directives are used to turn ON or OFF certain features. They vary from compiler to compiler. Examples of pragmas are:.....
Advantages of using macroMacros substitute a function call by the definition of that function. This saves execution time to a great extent.....