NULL is defined as either 0 or (void*)0. These values are almost identical; either a literal zero or a void pointer is converted automatically to any kind of pointer, as necessary, whenever a pointer is needed (although the compiler can?t always tell when a pointer is needed).
#include<stdio.h> int main() { if(NULL==(void *)0) printf("true"); else printf("false");
if(NULL == 0) printf("
Value is zero"); getch(); } This gives the output as True Value is Zero