Posts

Showing posts from March, 2022
Image
  OPERATORS: An operator is a symbol which helps the user to command the computer to do certain mathematical or logical manipulations. Operators are used in C language program to operate on data and variables. C has a rich set of operators which can be classified as 1. Arithmetic operators. 2. Relational Operators. 3. Logical Operators. 4. Assignment Operators. 5. Increment and Decrement Operators. 6. Conditional Operators. 7. Bitwise Operators. Arithmetic Operators: - All the basic arithmetic operations can be carried out in C. All the operators have almost the same meaning as in other languages. Both unary and binary operations are available in C language. Unary operations operate on a single operand, therefore the number 5 when operated by unary – will have the value –5. Arithmetic Operators Operator Meaning Example + Addition or Unary Plus x + y – Subtraction or Unary Minus x -