Top Banner
: PRESENTATION TOPIC : OPERATORS ...Nousheen Arshad... R1F15BSCS0040 Punjab University (UCP Campus , Rawalpindi)
8

Operators

Apr 14, 2017

Download

Software

Nousheen Arshad
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Operators

: PRESENTATION TOPIC :OPERATORS

...Nousheen Arshad...R1F15BSCS0040

Punjab University (UCP Campus , Rawalpindi)

Page 2: Operators

: OPERATORS :• Operators are the special symbols which are used to perform different operations

on the data.Operators are used with variables and constants to form expressions. • There are also some built-in operators in C. Following are some operators :

1. Arithmetic Operators: Arithmetic operators take numerical values (either literals or variables) as their operands and return a single numerical value.

Page 3: Operators

2. LOGICAL OPERATORS:• Logical operators are used to combine two or more relational expressions.• It include AND, OR, NOT, and combinations of those operations.

Page 4: Operators

3. RELATIONAL OPERATORS :

Page 5: Operators

4. ASSIGNMENT OPERATORS :• An assignment operator is the operator used to assign a new value to a

variable.

Page 6: Operators

5. INCREMENT & DECREMENT OPERATOR:• Increment and decrement operators are unary operators that add or subtract one

from their operand.

Page 7: Operators

6. BITWISE OPERATORS :

: Truth Table :

Page 8: Operators