This document describes Experiment 5 of the CSE 2120 Computer Programming Sessional. The experiment covers the use of various operators in C including arithmetic, relational, logical, increment/decrement, assignment, and bitwise operators. It also discusses the rules of operator precedence in C by providing examples of operations and the order they are performed.
This document describes Experiment 5 of the CSE 2120 Computer Programming Sessional. The experiment covers the use of various operators in C including arithmetic, relational, logical, increment/decrement, assignment, and bitwise operators. It also discusses the rules of operator precedence in C by providing examples of operations and the order they are performed.
This document describes Experiment 5 of the CSE 2120 Computer Programming Sessional. The experiment covers the use of various operators in C including arithmetic, relational, logical, increment/decrement, assignment, and bitwise operators. It also discusses the rules of operator precedence in C by providing examples of operations and the order they are performed.
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.)