• Source
    1. #include <stdio.h>
    2.  
    3. int main(void) {
    4. // NULL pointer is defined as (void *)0.
    5. char * i = NULL;
    6. char * j = (void *)0;
    7.  
    8. //dereferancing a NULL will crash a system.
    9. //printf("%d",*j);
    10.  
    11. printf("size of void : %d \n",sizeof(void));
    12. printf("size of void * : %d \n ",sizeof(void *));
    13. }
    14.