About 1,800,000 results
Open links in new tab
  1. Why binary and not ternary computing? - Stack Overflow

    Apr 19, 2009 · Trinary and higher bases will someday break through this issue when we reach the physical limitations of binary computing. Maybe not for another twenty years but we all know …

  2. syntax - Ternary operator (?:) in Bash - Stack Overflow

    @dutCh's answer shows that bash does have something similar to the "ternary operator" however in bash this is called the "conditional operator" expr?expr:expr (see man bash goto section …

  3. Ternary operator in PowerShell - Stack Overflow

    Jul 10, 2015 · From what I know, PowerShell doesn't seem to have a built-in expression for the so-called ternary operator. For example, in the C language, which supports the ternary …

  4. The ternary (conditional) operator in C - Stack Overflow

    The ternary operator is a syntactic and readability convenience, not a performance shortcut. People are split on the merits of it for conditionals of varying complexity, but for short …

  5. Does Python have a ternary conditional operator?

    Dec 27, 2008 · Though Pythons older than 2.5 are slowly drifting to history, here is a list of old pre-2.5 ternary operator tricks: "Python Idioms", search for the text 'Conditional expression' . …

  6. java - Ternary Operator - Stack Overflow

    An if statement in Java does not have a return type; to recode it using a ternary operator then you would have to add one.

  7. How adaptible are the C and C++ standards to a hypothetical …

    Apr 27, 2019 · If you look closely at the standards, you'll see that they generally describe expected observable behaviour. They don't mandate a binary host system. And, BTW, the …

  8. How do you use the ? : (conditional) operator in JavaScript?

    Jun 7, 2011 · What is the ?: (question mark and colon operator aka. conditional or "ternary") operator and how can I use it?

  9. Trinary state variables - Stack Overflow

    May 9, 2024 · I wanted to delve further into the topic of trinary state variables and get some feedback on implementing them the "proper" way. Issue: I am using a custom dict class with …

  10. JavaScript ternary operator example with functions

    " the condition element of a ternary statement is always evaluated as a Boolean value " Nope, ternary operator checks the truth value of the condition, the value of the expression in the …