OPERATIONS & EXPRESSION

  • The symbols which are used to perform logical and mathematical operations in a C program are called C operators.
  • These C operators join individual constants and variables to form expressions.
  • Operators, functions, constants and variables are combined together to form expressions.
  • Consider the expression A + B * 5. where, +, * are operators, A, B  are variables, 5 is constant and A + B * 5 is an expression.

TYPES OF C OPERATORS:

C language offers many types of operators. They are,
  1. Arithmetic operators
  2. Assignment operators
  3. Relational operators
  4. Logical operators
  5. Bit wise operators
  6. Conditional operators (ternary operators)
  7. Increment/decrement operators
  8. Special operators

No comments:

Post a Comment