Home TechnologyComputers Subscribe to RSS

What Are The Arithmetic Operators And Arithmetic Expressions?

Answer Question

2 Answers - Sort by: Date | Rating

    Arithmetic operators are the operators unwary +, unwary -, binary +, binary -, *, / and % (modulo division). These operators are used to evolve an expression. An expression that contains any or all of these arithmetic operators and operands is called an arithmetic expression.
    0 0

    Aarthiaru 

    answered 3 years ago

      The arithmetic operators are the symbols that represent arithmetic operations. These are used in arithmetic expressions. Each arithmetic operator operate upon two numeric values. (Constant or variable) and returns a value. Following are the arithmetic operators used in C++ language.

      Operator Meaning
      + Addition
      - Subtraction
      * Multiplication
      / Division
      % Remainder

      All arithmetic operators except the remainder operator, are used for all type of numeric data.
      The remainder or modulus operator (% operator) can only be used for integer type data. It returns the remainder when one integer id divided by another integer e.g. 5%3 returns the remainder 2.
      Arithmetic Expression
      An arithmetic expression is a combination of variables, constants and arithmetic operators. It is used to calculate the value of an arithmetic formula. It returns a single value after evaluating the expression.
      The value of the expression is assigned to a variable on the left side of"=" operator. This variable is known as receiving variable.
      The operator"=" is called assignment operator. It is used to assign the calculated value of the expression to the receiving variable. The receiving variable must be numeric type e.g. if m=10,x=5 the expression may be written as:
      M * x + 100
      0 0

      Pretty123 

      answered 3 years ago

        More

        More

           
           

          Ask a Question via Twitter

          Send a question to @askblurtit and we will publish it online and send you a reply everytime you receive an answer.

          Blurtit Store

          Get T-shirts, hoodies, caps and more at the Blurtit store

          Blurtit International