SlideShare a Scribd company logo
1 of 14
PRESENTED TO:- IEBC 
business college 
PRESENTED BY:- AMLENDU KUMAR DUBEY. 
bca 2nd year 
Ideal eyes 
A 
PRESENTATION 
ON 
OPERATORS
OPERATOR 
•An operator indicates an operation to be performed on 
data that viewed a value. Using various operators in ‘C’ 
one can link the Variable. 
OPERAND 
An operand is a data item on which operators perform the 
operation .’C’ is which in the use of different operators.
TYPES OF OPERATOR 
Arithmetic operator 
Relational operator 
Logical operator 
Increment and Decrement operator 
Assignment operator 
Bitwise operator 
Comma operator 
Conditional operator
Arithmetic operator 
An Arithmetic operator is a symbol which perform an Arithmetic operator 
namely Addition,Multiplication,Subtraction,Division,Remainder . 
All the Arithmetical operator are binary operator since they operate two 
operands at a time. 
Operator Symbol from 
A. Addition + X+Y 
B. Multiplication * X*Y 
C. Subtraction - X-Y 
D. Division / X/Y 
E. Remainder % X%Y 
Program
Arithmetic operator 
Unary arithmetic operator Binary arithmetic operator
Binary arithmetic operator 
These arithmetic Operator are used for numerical calculation between the 
two constant value. They are also called as Binary Arithmetic Operator. 
Explain Sign Example 
Addition + 2+2= 4 
Subtraction - 4-2=2 
Multiplication * 2*2=4 
Division / 4/2=2
Unary arithmetic operator 
The operators which require only one operand are called unary arithmetic 
operator. Unary Arithmetic Operator are increment(++) , decrement (--) and minus(-). 
Operator Description or Action 
++ Increment 
-- Decrement 
- Minus 
& Address operator 
sizeof Gives the size of on operator 
Minus (-):- unary minus is used for indicating or changing the algebraic sign of a value. 
Example:- x= -10; y= -x;
Relational operator 
Relational operator such as greater then (>) or less then (<) are 
used to compare values between two variables and thus from 
relational expressions. 
The relational operator expressions give the value “1” for TRUE result and the value 
“0” for FALSE result. 
1) Greater then “>” 
2) Greater then equal “>=” 
3) Less then “<” 
4) Less then equal “<=” 
5) Equal “==” 
6) Not equal “!=” 
Program
Logical operator 
The logical relationship between the two expression are checked 
with logical operator. Using these operators two expression can be 
joined. After checking the condition it provides logical true (1) or 
False(0) . 
I. AND && 
II. OR || 
III. NOT !
Logical gate 
AND GATE 
x Y Z 
0 0 0 
0 1 0 
1 1 1 
OR GATE 
X Y Z 
0 0 0 
0 1 1 
1 0 1 
1 1 1 
NOT GATE 
X Y Z 
0 0 1 
1 0 0 
0 1 0 
1 1 0
Increment and decrement operator 
The increment and decrement operator in C are represented by 
“++” and “- -” sign respectively. The operator “++” means “add 
1” and the operator “- -” means “subtract 1” . 
Expression:- 
Increment Decrement 
a=a+1; a=a-1; 
or or 
a++; a- -;
Assignment operator 
The Assignment operator is represented by the equal sign ”=”.The variable appearing 
On the left side of “=” sign and it is assigned the value appearing on the right side 
Of this sign. 
Assignment Statement Format 
Variable_name= Expression; 
Assignment operator symbol 
= *= /= %= += -= <<= >>= >>>= &= 
!= ^=
Conditional operator 
The conditional operator contains condition followed by two statement or values. 
If the condition is true, the first statement is executed , otherwise the second 
statement is executed. The condition operator is also called the ternary operator 
became they take three arguments . 
Syntax: 
Condition ? (expression1) : (expression2) ; 
Program Conditional Operator 
void main() 
{ 
3>2 ? Printf(“True”) : printf(“False”) ; 
} 
Output: 
True
Thank You

More Related Content

What's hot (18)

java operators
 java operators java operators
java operators
 
Operators
OperatorsOperators
Operators
 
Operator.ppt
Operator.pptOperator.ppt
Operator.ppt
 
C language operators
C language operatorsC language operators
C language operators
 
Operators
OperatorsOperators
Operators
 
C OPERATOR
C OPERATORC OPERATOR
C OPERATOR
 
Types of operators in C
Types of operators in CTypes of operators in C
Types of operators in C
 
C Operators
C OperatorsC Operators
C Operators
 
Operators
OperatorsOperators
Operators
 
Operators in c++
Operators in c++Operators in c++
Operators in c++
 
Arithmetic operator
Arithmetic operatorArithmetic operator
Arithmetic operator
 
Basic c operators
Basic c operatorsBasic c operators
Basic c operators
 
C – operators and expressions
C – operators and expressionsC – operators and expressions
C – operators and expressions
 
COM1407: C Operators
COM1407: C OperatorsCOM1407: C Operators
COM1407: C Operators
 
Operators in C/C++
Operators in C/C++Operators in C/C++
Operators in C/C++
 
Report on c
Report on cReport on c
Report on c
 
Opeartor &amp; expression
Opeartor &amp; expressionOpeartor &amp; expression
Opeartor &amp; expression
 
Mathematical and logical operators
Mathematical and logical operatorsMathematical and logical operators
Mathematical and logical operators
 

Viewers also liked

Unidad 2 introducción a los algoritmos
Unidad 2 introducción a los algoritmosUnidad 2 introducción a los algoritmos
Unidad 2 introducción a los algoritmosAlexandra Ochoa
 
Rpp its-my-birthday kusmo-review
Rpp its-my-birthday kusmo-reviewRpp its-my-birthday kusmo-review
Rpp its-my-birthday kusmo-reviewShe Bunan
 
Being Creative. Being Professional.
Being Creative. Being Professional.Being Creative. Being Professional.
Being Creative. Being Professional.Gina Asaro-Collura
 
Thinking Fast with Fire Drills
Thinking Fast with Fire DrillsThinking Fast with Fire Drills
Thinking Fast with Fire DrillsGina Asaro-Collura
 
Portfolios: Evaluate your work
Portfolios: Evaluate your workPortfolios: Evaluate your work
Portfolios: Evaluate your workGina Asaro-Collura
 
Практика увольнения сотрудников за разглашение конфиденциальной информации
Практика увольнения сотрудников за разглашение конфиденциальной информацииПрактика увольнения сотрудников за разглашение конфиденциальной информации
Практика увольнения сотрудников за разглашение конфиденциальной информацииИгорь Агурьянов
 
Mini Cooper: Awesome Integrated Campaign: Lecture 9_Oct21
Mini Cooper: Awesome Integrated Campaign: Lecture 9_Oct21Mini Cooper: Awesome Integrated Campaign: Lecture 9_Oct21
Mini Cooper: Awesome Integrated Campaign: Lecture 9_Oct21Gina Asaro-Collura
 

Viewers also liked (12)

Where to intern/Where to work
Where to intern/Where to workWhere to intern/Where to work
Where to intern/Where to work
 
Unidad 2 introducción a los algoritmos
Unidad 2 introducción a los algoritmosUnidad 2 introducción a los algoritmos
Unidad 2 introducción a los algoritmos
 
AD 216: Lecture 4
AD 216: Lecture 4AD 216: Lecture 4
AD 216: Lecture 4
 
Rpp its-my-birthday kusmo-review
Rpp its-my-birthday kusmo-reviewRpp its-my-birthday kusmo-review
Rpp its-my-birthday kusmo-review
 
Lecture_class10_oct28: dos xx
Lecture_class10_oct28: dos xxLecture_class10_oct28: dos xx
Lecture_class10_oct28: dos xx
 
AD 216: Lecture 3
AD 216: Lecture 3AD 216: Lecture 3
AD 216: Lecture 3
 
Being Creative. Being Professional.
Being Creative. Being Professional.Being Creative. Being Professional.
Being Creative. Being Professional.
 
Thinking Fast with Fire Drills
Thinking Fast with Fire DrillsThinking Fast with Fire Drills
Thinking Fast with Fire Drills
 
Portfolios: Evaluate your work
Portfolios: Evaluate your workPortfolios: Evaluate your work
Portfolios: Evaluate your work
 
AD466: Lecture One: FALL 2016
AD466: Lecture One: FALL 2016AD466: Lecture One: FALL 2016
AD466: Lecture One: FALL 2016
 
Практика увольнения сотрудников за разглашение конфиденциальной информации
Практика увольнения сотрудников за разглашение конфиденциальной информацииПрактика увольнения сотрудников за разглашение конфиденциальной информации
Практика увольнения сотрудников за разглашение конфиденциальной информации
 
Mini Cooper: Awesome Integrated Campaign: Lecture 9_Oct21
Mini Cooper: Awesome Integrated Campaign: Lecture 9_Oct21Mini Cooper: Awesome Integrated Campaign: Lecture 9_Oct21
Mini Cooper: Awesome Integrated Campaign: Lecture 9_Oct21
 

Similar to Opreator In "C"

Cse lecture-4.1-c operators and expression
Cse lecture-4.1-c operators and expressionCse lecture-4.1-c operators and expression
Cse lecture-4.1-c operators and expressionFarshidKhan
 
This slide contains information about Operators in C.pptx
This slide contains information about Operators in C.pptxThis slide contains information about Operators in C.pptx
This slide contains information about Operators in C.pptxranaashutosh531pvt
 
C++ Expressions Notes
C++ Expressions NotesC++ Expressions Notes
C++ Expressions NotesProf Ansari
 
Chapter 5 - Operators in C++
Chapter 5 - Operators in C++Chapter 5 - Operators in C++
Chapter 5 - Operators in C++Deepak Singh
 
Unit ii chapter 1 operator and expressions in c
Unit ii chapter 1 operator and expressions in cUnit ii chapter 1 operator and expressions in c
Unit ii chapter 1 operator and expressions in cSowmya Jyothi
 
Operators in Python
Operators in PythonOperators in Python
Operators in PythonAnusuya123
 
Operators and expressions in C++
Operators and expressions in C++Operators and expressions in C++
Operators and expressions in C++Neeru Mittal
 
Operators in c programming
Operators in c programmingOperators in c programming
Operators in c programmingsavitamhaske
 
Operator & Expression in c++
Operator & Expression in c++Operator & Expression in c++
Operator & Expression in c++bajiajugal
 
Operators and Expressions in C++
Operators and Expressions in C++Operators and Expressions in C++
Operators and Expressions in C++Praveen M Jigajinni
 
Operators and Expressions in C#
Operators and Expressions in C#Operators and Expressions in C#
Operators and Expressions in C#Simplilearn
 

Similar to Opreator In "C" (20)

Cse lecture-4.1-c operators and expression
Cse lecture-4.1-c operators and expressionCse lecture-4.1-c operators and expression
Cse lecture-4.1-c operators and expression
 
This slide contains information about Operators in C.pptx
This slide contains information about Operators in C.pptxThis slide contains information about Operators in C.pptx
This slide contains information about Operators in C.pptx
 
Fundamentals of Programming Chapter 5
Fundamentals of Programming Chapter 5Fundamentals of Programming Chapter 5
Fundamentals of Programming Chapter 5
 
Programming for Problem Solving
Programming for Problem SolvingProgramming for Problem Solving
Programming for Problem Solving
 
C++ Expressions Notes
C++ Expressions NotesC++ Expressions Notes
C++ Expressions Notes
 
Chapter 5 - Operators in C++
Chapter 5 - Operators in C++Chapter 5 - Operators in C++
Chapter 5 - Operators in C++
 
Types of Operators in C
Types of Operators in CTypes of Operators in C
Types of Operators in C
 
Operators and it's type
Operators and it's type Operators and it's type
Operators and it's type
 
operator ppt.ppt
operator ppt.pptoperator ppt.ppt
operator ppt.ppt
 
c programming2.pptx
c programming2.pptxc programming2.pptx
c programming2.pptx
 
Unit ii chapter 1 operator and expressions in c
Unit ii chapter 1 operator and expressions in cUnit ii chapter 1 operator and expressions in c
Unit ii chapter 1 operator and expressions in c
 
Operators in Python
Operators in PythonOperators in Python
Operators in Python
 
cprogrammingoperator.ppt
cprogrammingoperator.pptcprogrammingoperator.ppt
cprogrammingoperator.ppt
 
Operators and expressions in C++
Operators and expressions in C++Operators and expressions in C++
Operators and expressions in C++
 
Control statements in c
Control statements in cControl statements in c
Control statements in c
 
Operators in c programming
Operators in c programmingOperators in c programming
Operators in c programming
 
Operator & Expression in c++
Operator & Expression in c++Operator & Expression in c++
Operator & Expression in c++
 
Operators and Expressions in C++
Operators and Expressions in C++Operators and Expressions in C++
Operators and Expressions in C++
 
Operators and Expressions in C#
Operators and Expressions in C#Operators and Expressions in C#
Operators and Expressions in C#
 
Operator in C language
Operator in C languageOperator in C language
Operator in C language
 

Recently uploaded

Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 

Recently uploaded (20)

Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 

Opreator In "C"

  • 1. PRESENTED TO:- IEBC business college PRESENTED BY:- AMLENDU KUMAR DUBEY. bca 2nd year Ideal eyes A PRESENTATION ON OPERATORS
  • 2. OPERATOR •An operator indicates an operation to be performed on data that viewed a value. Using various operators in ‘C’ one can link the Variable. OPERAND An operand is a data item on which operators perform the operation .’C’ is which in the use of different operators.
  • 3. TYPES OF OPERATOR Arithmetic operator Relational operator Logical operator Increment and Decrement operator Assignment operator Bitwise operator Comma operator Conditional operator
  • 4. Arithmetic operator An Arithmetic operator is a symbol which perform an Arithmetic operator namely Addition,Multiplication,Subtraction,Division,Remainder . All the Arithmetical operator are binary operator since they operate two operands at a time. Operator Symbol from A. Addition + X+Y B. Multiplication * X*Y C. Subtraction - X-Y D. Division / X/Y E. Remainder % X%Y Program
  • 5. Arithmetic operator Unary arithmetic operator Binary arithmetic operator
  • 6. Binary arithmetic operator These arithmetic Operator are used for numerical calculation between the two constant value. They are also called as Binary Arithmetic Operator. Explain Sign Example Addition + 2+2= 4 Subtraction - 4-2=2 Multiplication * 2*2=4 Division / 4/2=2
  • 7. Unary arithmetic operator The operators which require only one operand are called unary arithmetic operator. Unary Arithmetic Operator are increment(++) , decrement (--) and minus(-). Operator Description or Action ++ Increment -- Decrement - Minus & Address operator sizeof Gives the size of on operator Minus (-):- unary minus is used for indicating or changing the algebraic sign of a value. Example:- x= -10; y= -x;
  • 8. Relational operator Relational operator such as greater then (>) or less then (<) are used to compare values between two variables and thus from relational expressions. The relational operator expressions give the value “1” for TRUE result and the value “0” for FALSE result. 1) Greater then “>” 2) Greater then equal “>=” 3) Less then “<” 4) Less then equal “<=” 5) Equal “==” 6) Not equal “!=” Program
  • 9. Logical operator The logical relationship between the two expression are checked with logical operator. Using these operators two expression can be joined. After checking the condition it provides logical true (1) or False(0) . I. AND && II. OR || III. NOT !
  • 10. Logical gate AND GATE x Y Z 0 0 0 0 1 0 1 1 1 OR GATE X Y Z 0 0 0 0 1 1 1 0 1 1 1 1 NOT GATE X Y Z 0 0 1 1 0 0 0 1 0 1 1 0
  • 11. Increment and decrement operator The increment and decrement operator in C are represented by “++” and “- -” sign respectively. The operator “++” means “add 1” and the operator “- -” means “subtract 1” . Expression:- Increment Decrement a=a+1; a=a-1; or or a++; a- -;
  • 12. Assignment operator The Assignment operator is represented by the equal sign ”=”.The variable appearing On the left side of “=” sign and it is assigned the value appearing on the right side Of this sign. Assignment Statement Format Variable_name= Expression; Assignment operator symbol = *= /= %= += -= <<= >>= >>>= &= != ^=
  • 13. Conditional operator The conditional operator contains condition followed by two statement or values. If the condition is true, the first statement is executed , otherwise the second statement is executed. The condition operator is also called the ternary operator became they take three arguments . Syntax: Condition ? (expression1) : (expression2) ; Program Conditional Operator void main() { 3>2 ? Printf(“True”) : printf(“False”) ; } Output: True