Understanding operators

Before we dive into this topic, let's understand what operators and operands are. These are two important terms we will use in this section of this book:

  • An operator is a programming element that is applied to one or more operands in an expression or statement.
  • An operand is an object that can be manipulated.

C# offers different types of operators, such as the Unary operator ([increment operator] ++, new) which takes one operand, Binary operators of the arithmetic type (+, -, *, /), relational types (> ,<, <=, >=), equality types (=, !=), and shift types (>>, <<), all of which are used between two operands. C# also offers a ternary operator that takes three operands (?:).

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.216.77.153