Arithmetic Operators

Definition & Meaning

Last updated 23 month ago

What is Arithmetic Operators?

Arithmetic Operators, in C#, are Operators used to carry out arithmetic operations that encompass multiplication, division, addition and subtraction. With the Exception of the subtraction Operator, in which "-" is used to suggest a poor quantity, mathematics operators are Binary Operators that take two Operands. The operands are of numeric Records type, and perForm in a similar way as in otheR Languages along with C and C .

Arithmetic operators " " and "-" are used to control guidelines by way of adding or subtracting the numeric fee to or from the recommendations with out producing any exception all through overflow of the of the pointer’s Domain. Arithmetic operators may be overloaded while used with user-defined types to extend the nature of everyday operators, for this reason presenting extra Functionalities.

What Does Arithmetic Operators Mean?

The listing of mathematics operators available in C# consists of:

  • * : used to perform multiplication of operands of Integer, Floating-factor and Decimal type. It returns a multiplicative made from the 2 operands.
  • / : used to divide operands of integer, floating-point and decimal type. It returns the quotient of its operands.
  • % : used to Compute the remainder of the division among two operands, that can beof integer, flow, double or decimal type.
  • : used with unique kinds of operands, ensuing in one-of-a-kind form of outcomes. In case of numeric and Enumeration kinds, the predefined addition operator calculates the sum of operands, even as the usage of String kind operand outcomes in a concatenated string. It also can be used to combine Delegates of a comparable kind.
  • – : used with all numeric sorts like integer, flow, decimal and enumeration to calculate the distinction among its operands. It also can be used to Dispose of delegates of a similar kind.

Share Arithmetic Operators article on social networks

Your Score to Arithmetic Operators article

Score: 5 out of 5 (1 voters)

Be the first to comment on the Arithmetic Operators

361- V4

tech-term.com© 2023 All rights reserved