0% found this document useful (0 votes)
14 views14 pages

C Operators

Uploaded by

sdandale092
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views14 pages

C Operators

Uploaded by

sdandale092
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 14

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

You might also like