Most of the CPUs support virtual memory, a page fault exception will be usually issued if you try to read at memory address 0x0 i.e. NULL . The OS page fault handler will be invoked, the OS will then decide that the page is invalid and aborts your program.