C++ : Unary math Operator

Objectives :

  • myUnaryMathOperator1
  • Unary Math operations are so named because these operations are done with single operand ( on the right side of the assignment operator).
    • in C++ binary math operators are
      Addition, subtraction, multiplication, division and modulus.
  • example of prefix and post fix operations.
  • assignment operators
    int x, y, a, b;
    x = a =10;
  • Code : myUnaryMathOperator1.txt

Step: 1 Create a project

Step: 2 Create a source file

Step: 3 Edit Source code

Step: 4 Runtime View

Step: 5b