what is the value of null in c
Null pointer In C, two null pointers of any type are guaranteed to compare equal.[1] The preprocessor macro NULL is defined as an implementation-defined null pointer constant,[2] which in C99 can be portably expressed as the integer value 0 converted implicitly or explicitly to the type void* (pointer to void).[3] The C standard does not say that the null pointer is the same as the pointer to memory addressÂ 0, though that may be the case in practice. Dereferencing a null pointer is undefined behavior in C, and a conforming implementation is allowed to assume that any pointer that is dereferenced is not null.