OPERATORS IN C Presentation By S.Shakila Banu, MCA
OPERATORS The operator is a symbol that tells the computer to perform certain mathematical or logical manipulations in C operators.  C operators can be classified into number of categories.
 Arithmetic Operators  Relational Operators  Logical Operators  Assignment Operators  Increment and Decrement Operators  Conditional Operators  Bitwise Operators  Special Operators
Arithmetic Operators  An operator that performs arithmetic operation on groups and numbers. 
 Relational Operators  A relation operator checks the relation between two operands  Relational operators are used in decision making and loops
 Logical operators  Logical operators performs logical operations on give expression by joining two or more expressions or conditions .
 Increment and decrement operators  C allows two very useful operators increment and decrement operators.  The operator++ adds one to the operator while__ subtracts one. Both are unary operators and takes the following form. eg; pre post ++m; or m++; - -m; or m- -;
 Conditional Operators  Conditional operators also known as ternary operators.
 Bitwise Operators  Bitwise operators are the operators used to perform the operations on the data at the bit level.  When we perform the bitwise operations ,then it is also known as bit- level programming .
 Special Operators  These are used to perform mathematical calculations like addition, subtraction ,multiplication , division and modulus .  Special operators can be divided in to 2 types  THE COMMA OPERATOR  THE SIZE OPERATOR
 THE COMMA OPERATOR  The comma operator is basically a binary operator.  Eg; value=(x=10,y=5,x+y);  THE SIZE OF OPERATOR  It determines the size of the expression or the data type specified in the number of storage units.  Eg; m=size of (sum);
THANK YOU

C Operators in programming langues .ppt

  • 1.
  • 2.
    OPERATORS The operator isa symbol that tells the computer to perform certain mathematical or logical manipulations in C operators.  C operators can be classified into number of categories.
  • 3.
     Arithmetic Operators Relational Operators  Logical Operators  Assignment Operators  Increment and Decrement Operators  Conditional Operators  Bitwise Operators  Special Operators
  • 5.
    Arithmetic Operators  Anoperator that performs arithmetic operation on groups and numbers. 
  • 6.
     Relational Operators A relation operator checks the relation between two operands  Relational operators are used in decision making and loops
  • 7.
     Logical operators Logical operators performs logical operations on give expression by joining two or more expressions or conditions .
  • 9.
     Increment anddecrement operators  C allows two very useful operators increment and decrement operators.  The operator++ adds one to the operator while__ subtracts one. Both are unary operators and takes the following form. eg; pre post ++m; or m++; - -m; or m- -;
  • 10.
     Conditional Operators Conditional operators also known as ternary operators.
  • 11.
     Bitwise Operators Bitwise operators are the operators used to perform the operations on the data at the bit level.  When we perform the bitwise operations ,then it is also known as bit- level programming .
  • 12.
     Special Operators These are used to perform mathematical calculations like addition, subtraction ,multiplication , division and modulus .  Special operators can be divided in to 2 types  THE COMMA OPERATOR  THE SIZE OPERATOR
  • 13.
     THE COMMAOPERATOR  The comma operator is basically a binary operator.  Eg; value=(x=10,y=5,x+y);  THE SIZE OF OPERATOR  It determines the size of the expression or the data type specified in the number of storage units.  Eg; m=size of (sum);
  • 14.