User Tools

Site Tools


null_pointer

Null Pointer

See also Null References - The Billion Dollar Mistake by Tony Hoare, Tony Hoare, Null (SQL), Null reference, Null pointer, Null pointer exception, Nullable type

Snippet from Wikipedia: Null pointer

In computing, a null pointer or null reference is a value saved for indicating that the pointer or reference does not refer to a valid object. Programs routinely use null pointers to represent conditions such as the end of a list of unknown length or the failure to perform some action; this use of null pointers can be compared to nullable types and to the Nothing value in an option type.

A null pointer should not be confused with an uninitialized pointer: a null pointer is guaranteed to compare unequal to any pointer that points to a valid object. However, depending on the language and implementation, an uninitialized pointer may not have any such guarantee. It might compare equal to other, valid pointers; or it might compare equal to null pointers. It might do both at different times; or the comparison might be undefined behaviour.

Because a null pointer does not point to a meaningful object, an attempt to access the data stored at that (invalid) memory location may cause a run-time error or immediate program crash. This is the null pointer error. It is one of the most common types of software weaknesses, and Tony Hoare, who introduced the concept, has referred to it as a "billion dollar mistake".

Computer History: Big Tech Silicon Valley Technocracy, Surveillance Valley - The Rise of the Military-Digital Complex - History of the Internet, Facebook (zuck.pdf), Tesla / Space X / Twitter (musk.pdf), History, IT History, Cloud History (Azure History, AWS History, GCP History), Amazon.com / Blue Origin (Bezos - bezos.pdf), Internet History, Email History, Bell Labs, Xerox PARC, OS History (UNIX History - Linux History - Minicomputer - Mainframe History - IBM History - Personal Computer History (Apple I - Apple II - Apple III, IBM PC, Compaq, Macintosh 128K, Apple Lisa), Vintage Apple Resources, Computer Stores, macOS History - Apple History - Apple, Inc. (Steve Jobs jobs.pdf), Windows History - Windows Server History - Microsoft History - Microsoft (Bill Gates gates.pdf, Programming History (C History - C++ History - C# History - COBOL History - Golang History - Java History - JavaScript History - Python History - PowerShell History), Computing History, Computing Hardware History, Software Engineering History, Software History, Networking History, Vintage Computing - Vintage Computers - Retrocomputing, Legacy - Defunct Microprocessor Companies (MOS Technology - 6502, Motorola - Motorola 68000, Zilog - Zilog Z80), Legacy - Defunct Computer Companies, Legacy - Defunct Software Companies, History of Computer Hardware, History of Computing, History of Programming Languages, Legacy - Defunct Electronics Companies, PowerPC architecture family, List of PowerPC processors, CPU - Microprocessors, Discontinued Intel processors, 4-bit computing - 4-bit, 8-bit computing - 8-bit, 16-bit computing - 16-bit, 32-bit computing - 32-bit, History of Microsoft Exchange Server (Microsoft Mail - formerly Network Courier), Computer History Museum, Military-Digital Complex - Military-Industrial Complex (Read Surveillance Valley - The Rise of the Military-Digital Complex), Computer History Bibliography, Awesome Retrocomputing. (navbar_ithistory - see also navbar_bigtech, navbar_technocracy, navbar_programminghistory)


Cloud Monk is Retired (for now). Buddha with you. © 2005 - 2024 Losang Jinpa or Fair Use. Disclaimers

SYI LU SENG E MU CHYWE YE. NAN. WEI LA YE. WEI LA YE. SA WA HE.


null_pointer.txt · Last modified: 2022/09/28 00:39 by 127.0.0.1