You are on page 1of 11

CSE 2120

Computer Programming Sessional

Experiment No.: 05
Amanur Rahman
Lecturer, Dept. of EEE
BAUET
Experiment Name

Use of Arithmetic Operators, Rules of Operator Precedence,


Relational operators, Logical Operators, Increment and
decrement operators and keywords.
Operators in C
Arithmetic Operators in C
Assume variable A holds 10 and variable B holds 20
Increment & Decrement Operators in C
Assume variable A holds 10
Relational Operators in C
Assume variable A holds 10 and variable B holds 20
Logical Operators in C
Assume variable A holds 1 and variable B holds 0
Assignment Operators
Bitwise Operators in C
Assume variable A holds 60 and variable B holds 13
Operators Precedence in C
For example x = 7+3*2
Operators Precedence in C (Contd.)

You might also like