encyclopegia.org

Null function

In computer science, a null function (or null operator) is a subroutine that leaves the program state unchanged. When it is part of the instruction set of a processor, it is called a NOP or NOOP (No OPeration). Mathematically, a (computer) function f is null if and only if its execution leaves the program state s unchanged. That is, a null function is an identity function whose domain and codomain are both the state space S of the program, and for which: f(s)=s for all elements s \in S . Less rigorous definitions may also be encountered. For example, a function may take a single operand, transform it into a new data type, and return the result. While such usages bear a strong visual resemblance to identity functions, they create or alter a binary data value and thus change the program state. From a software maintainability perspective it is better to identify such "minor" alternations of state explicitly, since calling them null functions provides future maintainers of the code with no insights on their actual purposes.

In computer science, a null function (or null operator) is a subroutine that leaves the program state unchanged. When it is part of the instruction set of a processor, it is called a NOP or NOOP (No OPeration). Mathematically, a (computer) function f is null if and only if its execution leaves the program state s unchanged. That is, a null function is an identity function whose domain and codomain are both the state space S of the program, and for which: f(s)=s for all elements s \in S . Less rigorous definitions may also be encountered. For example, a function may take a single operand, transform it into a new data type, and return the result. While such usages bear a strong visual resemblance to identity functions, they create or alter a binary data value and thus change the program state. From a software maintainability perspective it is better to identify such "minor" alternations of state explicitly, since calling them null functions provides future maintainers of the code with no insights on their actual purposes. ==See also== IEFBR14 ==References== ==External links== Makes humorous statements about the NULL encryption algorithm.

References

No reference rows published for this article.

Cite this article

MLA

"Null function." encyclopegia.org, 2026, https://encyclopegia.org/wiki/null-function. Accessed 23 November 2026.

Chicago

"Null function." encyclopegia.org. Accessed November 23, 2026. https://encyclopegia.org/wiki/null-function.

APA

encyclopegia.org. (2026). Null function. Retrieved November 23, 2026, from https://encyclopegia.org/wiki/null-function

Accessed November 23, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Fairfield Union High School

enwiki · references available

Black Island (Ross Archipelago)

enwiki · references available

Going Down (album)

enwiki · references available

Kogalym

enwiki · references available

Voz no Ouvido

enwiki · references available

Newham Monitoring Project

enwiki · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1345568952 · 0.5 · snapshot enwiki-001345568952

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.