About 7,340 results
Open links in new tab
  1. Unary plus (+) - JavaScript - MDN

    Jul 8, 2025 · The unary plus (+) operator precedes its operand and evaluates to its operand but attempts to convert it into a number, if it isn't already.

  2. Unary Operators in Programming - GeeksforGeeks

    Mar 20, 2024 · In programming, operators act as powerful tools for manipulating data and performing various operations. Among these, unary operators stand out, functioning on a single operand to …

  3. c# - What does the unary plus operator do? - Stack Overflow

    136 Actually, unary plus does do something - even in C. It performs the usual arithmetic conversions on the operand and returns a new value, which can be an integer of greater width. If the original value …

  4. Unary Operators In C++ - GeeksforGeeks

    Jun 15, 2026 · Unary operators are operators that perform an operation on a single operand. They play an important role in modifying values, evaluating conditions, and managing memory in C++. Unary …

  5. What is the purpose of the unary plus (+) operator in C?

    Jul 10, 2011 · The unary + operator does only one thing: . Since those would occur anyway if the operand were used in an expression, one imagines that unary + is in C simply for symmetry with …

  6. Unary operation - Wikipedia

    Unary operation In mathematics, a unary operation is an operation with only one operand, i.e. a single input. [1] This is in contrast to binary operations, which use two operands. [2] An example is any …

  7. Arithmetic operators - cppreference.com

    Built-in unary arithmetic operators 1) For the built-in unary plus operator, expression must be a prvalue of arithmetic, unscoped enumeration, or pointer type. Integral promotion is performed on expression …

  8. Arithmetic operators - C# reference | Microsoft Learn

    Jan 20, 2026 · Learn about C# operators that perform multiplication, division, remainder, addition, and subtraction operations with numeric types.

  9. Unary Plus and Negation Operators: + and - | Microsoft Learn

    Jan 8, 2026 · The unary negation operator (-) produces the negative of its operand. The operand to the unary negation operator must be an arithmetic type. Integral promotion is performed on integral …

  10. 6. Expressions — Python 3.14.6 documentation

    1 day ago · The unary + (plus) operator yields its numeric argument unchanged; the operation can be overridden with the __pos__() special method. The unary ~ (invert) operator yields the bitwise …