CHAPTER OUTLINE
3.1
Introduction
3.2
Priority of Operators and their Clubbing
3.3
Comma and Conditional Operator
3.4 Arithmetic Operators
3^5
Relational Operators
3.6
Logical Operators
3.7
Bitwise Operators
Exercises
3.1 INTRODUCTION
In order to perform different kinds <?f operations, C uses different of operators. An operator indicates
an operation to be performed on data that yields a value. Using various operators in C one can link
the variables and constants. An operand is a data item on which operators perform the operations.
C is rich in use of different operators. C provides four classes of operators. They are 1) Arithmetic 2)
Relational 3) Logical 4) Bitwise. Apart from these basic operators, C also supports additional
operators. Basic operators and others along with their symbolic representation are shown in
Table 3.1.
Table 3.1 Types of operators
Type of Operator
Symbolic Representation
Arithmetic operators + , - , * , / and %
Relational operators
>, <, = =, >=. <= and I =
Logical operators
&&, | | and !
Increment and decrement operator ++ and
Assignment operator
=
Bitwise operators
&# | # * # >># << and ~
Comma operator
#
Conditional operator ? :
..................Content has been hidden....................

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