Null (computer)

From Wikipedia, the free encyclopedia

Jump to: navigation, search

Null has several meanings in computer programming.

Null pointer or null reference
  • Null is a special pointer value (or other kind of object reference) used to signify that a pointer intentionally does not point to (or refer to) an object. Such a pointer is called a null pointer.[1] Many implementations use a value of 0 (all bits zero) to represent the null pointer, as this is at the bottom of the address space of most CPUs (e.g., the INMOS Transputer has a signed address space and uses the most negative value). Many operating systems generate an exception when an attempt is made to access this memory address. Some languages use other nomenclature for such a pointer, e.g., Pascal uses nil. [2]
Null value
  • In many disciplines, the concept of null allows a three-valued logic, with null indicating "unknown value". The SQL database query language uses Null in this way, as do Visual Basic and its derivatives. In this model, an expression that depends on the value of a Null operand will evaluate to Null (VB) or "unknown" (SQL). So, for any A, the expressions "A = Null" and "A <> Null" are neither true nor false. However, the boolean operation "A and False" produces false, and similarly "A or True" is true, even when A is Null, because these expressions do not depend on the value of A. (Some SQL implementations may consider A = Null to be "true" if A is Null; see Null (SQL)).
Null string
  • A null string, also known as an empty string, is a string of zero length. [3]
Null device
  • In UNIX systems, /dev/null (also referred to as the black hole or bit bucket) is a special file that delivers no input when read from and discards all output when written to. The NUL device has similar functionality in DOS and Windows. On AmigaOS it is known as the NIL: device.
  • In Windows XP, null device is a file in system32/drivers, named Null.sys, the size is 2944 bytes. It can be seen in device manager, non-plug-and-play group.
Null character
  • In some programming languages, the null character denotes the end of a character string. Such strings that are encoded with the ASCII character set are sometimes referred to as ASCIIZ or ASCIZ strings — the "Z" indicating that the string ends with a "Zero", or null character[5].
  • When electromechanical teleprinters were used as computer output devices, one or more null characters were sent at the end of each printed line to allow time for the mechanism to return to the first printing position on the next line.
Null variant
  • Some programming languages (such as LISP; Ruby; and Pascal, Delphi, and other languages based on Pascal) use nil for the null variant, which can sometimes lead to confusing errors if null is accidentally used instead of nil.
Null script
Null Account
  • On certain forums and other internet sites, user accounts may suddenly show up as "null" and have all their settings reset. Generally this will remove the user's ability to add new content to the site, but it is usually fixed within a short period of time. A person whose account goes to "null" is commonly said to have been attacked by the "null monster", a fictional character used to describe the "null" phenomenon.

  1. ^ Brian W. Kernighan, Dennis M. Ritchie, The C Programming Language, Second Edition, Prentice Hall New Jersey, ISBN 0-13-110362-8, page 102
  2. ^ Elliot B. Koffman,Pascal 3rd Edition, Addison Wesley, Reading MA,ISBN 0-201-11834-3, page 678-679
  3. ^ Kernighan and Ritchie C, pg. 38
  4. ^ Kernighan and Ritchie C, pg. 38
  5. ^ Brian W. Kernighan, Dennis M. Ritchie, The C Programming Language, Second Edition, Prentice Hall New Jersey, ISBN 0-13-110362-8, page 30
Advanced Search
Included Web Search Engines


Safe Search

close

Top Matching Results

Occasionally Search.com will highlight specialized results that are based on the context of your query. Examples of specialized results include specific links to news, images, or video.

Top Matching Results may highlight information from other Search.com pages, content from the CNET Network of sites, or third party content. The listings are based purely on relevance. Search.com does not receive payment for listings in this section but our partners that provide this data may get paid for listing these products.

Sponsored Links

This section contains paid listings which have been purchased by companies that want to have their sites appear for specific search terms and related content. These listings are administered, sorted and maintained by a third party and are not endorsed by Search.com.

Search Results

Search.com sends your search query to several search engines at one time and integrates the results into one list which has been sorted by relevance using Search.com's proprietary algorithm. You can customize the list of search engines included in your metasearch from the preferences.

The search engines that are used in your metasearch may allow companies to pay to have their Web sites included within the results. To view the Paid Inclusion policy for a specific search engine, please visit their Web site. Search.com does not accept payment or share revenue with any search engine partner for listings in this section.