ternary operator

noun

An operator taking three operands, specifically the operator ?: used in many programming languages to select one of two values depending on a third value.

Meanings

nounternary operator (plural ternary operators)

plural ternary operators

  1. computingAn operator taking three operands, specifically the operator ?: used in many programming languages to select one of two values depending on a third value.

Synonyms & antonyms

Translations

German Auswahloperator
  • Auswahloperatoroperator taking three operands
Cite this entry
APA

ternary operator. (n.d.). In WatkinsX Dictionary. Retrieved November 3, 2026, from https://dictionary.watkinsx.com/word/ternary%20operator

MLA

“ternary operator.” WatkinsX Dictionary, https://dictionary.watkinsx.com/word/ternary%20operator. Accessed November 3, 2026.

Chicago

WatkinsX Dictionary, s.v. “ternary operator,” accessed November 3, 2026, https://dictionary.watkinsx.com/word/ternary%20operator.

Source: ternary operator on Wiktionary, CC BY-SA 4.0.