SlideShare a Scribd company logo
1 of 8
Operators in COperators in C
 An operator is a symbol that causesAn operator is a symbol that causes
specific mathematical or logicalspecific mathematical or logical
manipulations to be performed.manipulations to be performed.
 An operator is a function which is appliedAn operator is a function which is applied
to operands to obtain a resultto operands to obtain a result
 c = a + b
Plus Operator
which will Produce
addition of A and
B
C OperatorsC Operators

Assignment OperatorAssignment Operator

Arithmetic OperatorsArithmetic Operators

Compound assignment operatorsCompound assignment operators

Relational / Comparison OperatorsRelational / Comparison Operators

Increment & Decrement OperatorsIncrement & Decrement Operators

Logical OperatorsLogical Operators

Special OperatorsSpecial Operators

Pointer OperatorsPointer Operators
Operators CategoriesOperators Categories
 Assignment operatorAssignment operator

The “equal to” symbol (=) is called asThe “equal to” symbol (=) is called as
assignment operator. it is used to assignassignment operator. it is used to assign
a value to a variable.a value to a variable.

It assigns the value of the expression onIt assigns the value of the expression on
its right side to the variable on its leftits right side to the variable on its left
side.side.

a = 10;
C OperatorsC Operators
 Arithmetic OperatorsArithmetic Operators
• AdditionAddition c = a + bc = a + b
• SubtractionSubtraction c = a - bc = a - b
• MultiplicationMultiplication c = a * bc = a * b
• DivisionDivision c = a / bc = a / b
• RemainderRemainder c = a % bc = a % b
C OperatorsC Operators
 Relational (Comparison) OperatorsRelational (Comparison) Operators

The relational operators are used to test orThe relational operators are used to test or
compare the value between two operands.compare the value between two operands.

>> Greater thanGreater than

<< Less thanLess than

>=>= Greater than or equal toGreater than or equal to

<=<= Less than or equal toLess than or equal to

! =! = Not equal toNot equal to

== == EqualityEquality
C OperatorsC Operators
 Increment and decrement operatorsIncrement and decrement operators

++++ increases variable value by 1increases variable value by 1

---- decreases variable value by 1decreases variable value by 1

SyntaxSyntax
a++; //increase ‘a’ by 1//increase ‘a’ by 1
a--; //decrease ‘a’ by 1//decrease ‘a’ by 1
C OperatorsC Operators
 Logical operatorsLogical operators

Logical operators are used to combineLogical operators are used to combine
two or more relations. The logicaltwo or more relations. The logical
operators are called Boolean operatorsoperators are called Boolean operators
because the tests between values arebecause the tests between values are
reduced to either true or false.reduced to either true or false.

OperatorOperator DescriptionDescription
• &&&& ANDAND
• |||| OROR
• !! NOTNOT
C OperatorsC Operators

More Related Content

What's hot

Operators and expressions in c language
Operators and expressions in c languageOperators and expressions in c language
Operators and expressions in c languagetanmaymodi4
 
Conditional operators
Conditional operatorsConditional operators
Conditional operatorsBU
 
Expression and Operartor In C Programming
Expression and Operartor In C Programming Expression and Operartor In C Programming
Expression and Operartor In C Programming Kamal Acharya
 
Conditional statement c++
Conditional statement c++Conditional statement c++
Conditional statement c++amber chaudary
 
Branching statements
Branching statementsBranching statements
Branching statementsArunMK17
 
User defined functions in C programmig
User defined functions in C programmigUser defined functions in C programmig
User defined functions in C programmigAppili Vamsi Krishna
 
RECURSION IN C
RECURSION IN C RECURSION IN C
RECURSION IN C v_jk
 
Operator Overloading
Operator OverloadingOperator Overloading
Operator OverloadingNilesh Dalvi
 
Operators in C/C++
Operators in C/C++Operators in C/C++
Operators in C/C++Shobi P P
 
Control structures in C++ Programming Language
Control structures in C++ Programming LanguageControl structures in C++ Programming Language
Control structures in C++ Programming LanguageAhmad Idrees
 
Types of operators in C
Types of operators in CTypes of operators in C
Types of operators in CPrabhu Govind
 
Operators and expressions in C++
Operators and expressions in C++Operators and expressions in C++
Operators and expressions in C++Neeru Mittal
 

What's hot (20)

Operators and expressions in c language
Operators and expressions in c languageOperators and expressions in c language
Operators and expressions in c language
 
Conditional operators
Conditional operatorsConditional operators
Conditional operators
 
Data types
Data typesData types
Data types
 
Functions in C
Functions in CFunctions in C
Functions in C
 
Functions in c++
Functions in c++Functions in c++
Functions in c++
 
Expression and Operartor In C Programming
Expression and Operartor In C Programming Expression and Operartor In C Programming
Expression and Operartor In C Programming
 
Conditional statement c++
Conditional statement c++Conditional statement c++
Conditional statement c++
 
Branching statements
Branching statementsBranching statements
Branching statements
 
User defined functions in C programmig
User defined functions in C programmigUser defined functions in C programmig
User defined functions in C programmig
 
RECURSION IN C
RECURSION IN C RECURSION IN C
RECURSION IN C
 
Operator Overloading
Operator OverloadingOperator Overloading
Operator Overloading
 
Operators in C/C++
Operators in C/C++Operators in C/C++
Operators in C/C++
 
Control structures in C++ Programming Language
Control structures in C++ Programming LanguageControl structures in C++ Programming Language
Control structures in C++ Programming Language
 
Operators in C++
Operators in C++Operators in C++
Operators in C++
 
Function in c
Function in cFunction in c
Function in c
 
Types of operators in C
Types of operators in CTypes of operators in C
Types of operators in C
 
C operator and expression
C operator and expressionC operator and expression
C operator and expression
 
C if else
C if elseC if else
C if else
 
Type conversion
Type conversionType conversion
Type conversion
 
Operators and expressions in C++
Operators and expressions in C++Operators and expressions in C++
Operators and expressions in C++
 

Viewers also liked

R171 杉田明宏・いとうたけひこ・井上孝代 (2013). アニメ『みんながHappyになる方法』による平和学習:平和博物館における活用を展望して トラ...
R171 杉田明宏・いとうたけひこ・井上孝代 (2013). アニメ『みんながHappyになる方法』による平和学習:平和博物館における活用を展望して トラ...R171 杉田明宏・いとうたけひこ・井上孝代 (2013). アニメ『みんながHappyになる方法』による平和学習:平和博物館における活用を展望して トラ...
R171 杉田明宏・いとうたけひこ・井上孝代 (2013). アニメ『みんながHappyになる方法』による平和学習:平和博物館における活用を展望して トラ...Takehiko Ito
 
4.4 Final Draft PPP
4.4 Final Draft PPP4.4 Final Draft PPP
4.4 Final Draft PPPNicole Berry
 
AdditionalInformationAnaddendumtotheFlier
AdditionalInformationAnaddendumtotheFlierAdditionalInformationAnaddendumtotheFlier
AdditionalInformationAnaddendumtotheFlierBenjamin Kissinger
 
Eng. Saleh Alamoush Activities
Eng. Saleh Alamoush ActivitiesEng. Saleh Alamoush Activities
Eng. Saleh Alamoush ActivitiesSALEH ALAMOUSH
 
Quang Do's cv
Quang Do's cvQuang Do's cv
Quang Do's cvQuang Do
 
David Torry 2016 Resume2
David Torry 2016 Resume2David Torry 2016 Resume2
David Torry 2016 Resume2David Torry
 
R109 小平朋江・伊藤武彦 (2008). 精神障害の闘病記:多様な物語りの意義 マクロ・カウンセリング研究, 7, 48-63.
R109 小平朋江・伊藤武彦 (2008). 精神障害の闘病記:多様な物語りの意義 マクロ・カウンセリング研究, 7, 48-63.R109 小平朋江・伊藤武彦 (2008). 精神障害の闘病記:多様な物語りの意義 マクロ・カウンセリング研究, 7, 48-63.
R109 小平朋江・伊藤武彦 (2008). 精神障害の闘病記:多様な物語りの意義 マクロ・カウンセリング研究, 7, 48-63.Takehiko Ito
 
R062 井上孝代・伊藤武彦 (1997). 異文化間カウンセリングにおけるPAC分析技法 井上孝代(編) 異文化間臨床心理学序説 多賀出版(第4章(pp...
R062 井上孝代・伊藤武彦 (1997). 異文化間カウンセリングにおけるPAC分析技法 井上孝代(編) 異文化間臨床心理学序説 多賀出版(第4章(pp...R062 井上孝代・伊藤武彦 (1997). 異文化間カウンセリングにおけるPAC分析技法 井上孝代(編) 異文化間臨床心理学序説 多賀出版(第4章(pp...
R062 井上孝代・伊藤武彦 (1997). 異文化間カウンセリングにおけるPAC分析技法 井上孝代(編) 異文化間臨床心理学序説 多賀出版(第4章(pp...Takehiko Ito
 

Viewers also liked (14)

R171 杉田明宏・いとうたけひこ・井上孝代 (2013). アニメ『みんながHappyになる方法』による平和学習:平和博物館における活用を展望して トラ...
R171 杉田明宏・いとうたけひこ・井上孝代 (2013). アニメ『みんながHappyになる方法』による平和学習:平和博物館における活用を展望して トラ...R171 杉田明宏・いとうたけひこ・井上孝代 (2013). アニメ『みんながHappyになる方法』による平和学習:平和博物館における活用を展望して トラ...
R171 杉田明宏・いとうたけひこ・井上孝代 (2013). アニメ『みんながHappyになる方法』による平和学習:平和博物館における活用を展望して トラ...
 
The Lady Formal-final
The Lady Formal-finalThe Lady Formal-final
The Lady Formal-final
 
LCT_ Amalraj_CV_MAY_2016
LCT_ Amalraj_CV_MAY_2016LCT_ Amalraj_CV_MAY_2016
LCT_ Amalraj_CV_MAY_2016
 
4.4 Final Draft PPP
4.4 Final Draft PPP4.4 Final Draft PPP
4.4 Final Draft PPP
 
AdditionalInformationAnaddendumtotheFlier
AdditionalInformationAnaddendumtotheFlierAdditionalInformationAnaddendumtotheFlier
AdditionalInformationAnaddendumtotheFlier
 
Tecnologia Educativa
Tecnologia EducativaTecnologia Educativa
Tecnologia Educativa
 
Eng. Saleh Alamoush Activities
Eng. Saleh Alamoush ActivitiesEng. Saleh Alamoush Activities
Eng. Saleh Alamoush Activities
 
Quang Do's cv
Quang Do's cvQuang Do's cv
Quang Do's cv
 
David Torry 2016 Resume2
David Torry 2016 Resume2David Torry 2016 Resume2
David Torry 2016 Resume2
 
R109 小平朋江・伊藤武彦 (2008). 精神障害の闘病記:多様な物語りの意義 マクロ・カウンセリング研究, 7, 48-63.
R109 小平朋江・伊藤武彦 (2008). 精神障害の闘病記:多様な物語りの意義 マクロ・カウンセリング研究, 7, 48-63.R109 小平朋江・伊藤武彦 (2008). 精神障害の闘病記:多様な物語りの意義 マクロ・カウンセリング研究, 7, 48-63.
R109 小平朋江・伊藤武彦 (2008). 精神障害の闘病記:多様な物語りの意義 マクロ・カウンセリング研究, 7, 48-63.
 
Funcionamento
Funcionamento Funcionamento
Funcionamento
 
Selva tropical (2)
Selva tropical (2)Selva tropical (2)
Selva tropical (2)
 
R062 井上孝代・伊藤武彦 (1997). 異文化間カウンセリングにおけるPAC分析技法 井上孝代(編) 異文化間臨床心理学序説 多賀出版(第4章(pp...
R062 井上孝代・伊藤武彦 (1997). 異文化間カウンセリングにおけるPAC分析技法 井上孝代(編) 異文化間臨床心理学序説 多賀出版(第4章(pp...R062 井上孝代・伊藤武彦 (1997). 異文化間カウンセリングにおけるPAC分析技法 井上孝代(編) 異文化間臨床心理学序説 多賀出版(第4章(pp...
R062 井上孝代・伊藤武彦 (1997). 異文化間カウンセリングにおけるPAC分析技法 井上孝代(編) 異文化間臨床心理学序説 多賀出版(第4章(pp...
 
Amortizacion
AmortizacionAmortizacion
Amortizacion
 

Similar to 2. operators in c

Similar to 2. operators in c (20)

Csc240 -lecture_5
Csc240  -lecture_5Csc240  -lecture_5
Csc240 -lecture_5
 
Opreator In "C"
Opreator In "C"Opreator In "C"
Opreator In "C"
 
C++
C++ C++
C++
 
Computer programming 2 Lesson 7
Computer programming 2  Lesson 7Computer programming 2  Lesson 7
Computer programming 2 Lesson 7
 
C Operators and Control Structures.pptx
C Operators and Control Structures.pptxC Operators and Control Structures.pptx
C Operators and Control Structures.pptx
 
C sharp part 001
C sharp part 001C sharp part 001
C sharp part 001
 
C Operators and Control Structures.pdf
C Operators and Control Structures.pdfC Operators and Control Structures.pdf
C Operators and Control Structures.pdf
 
operator ppt.ppt
operator ppt.pptoperator ppt.ppt
operator ppt.ppt
 
operators.pptx
operators.pptxoperators.pptx
operators.pptx
 
operator (1).pptx
operator (1).pptxoperator (1).pptx
operator (1).pptx
 
C# Fundamentals - Basics of OOPS - Part 2
C# Fundamentals - Basics of OOPS - Part 2C# Fundamentals - Basics of OOPS - Part 2
C# Fundamentals - Basics of OOPS - Part 2
 
Operators and it's type
Operators and it's type Operators and it's type
Operators and it's type
 
Operators in Python
Operators in PythonOperators in Python
Operators in Python
 
Operator precedence and associativity
Operator precedence and associativityOperator precedence and associativity
Operator precedence and associativity
 
Operator precedence and associativity
Operator precedence and associativityOperator precedence and associativity
Operator precedence and associativity
 
Theory3
Theory3Theory3
Theory3
 
Programming Fundamentals lecture 7
Programming Fundamentals lecture 7Programming Fundamentals lecture 7
Programming Fundamentals lecture 7
 
C operators
C operators C operators
C operators
 
05 operators
05   operators05   operators
05 operators
 
3- Operators in Java
3- Operators in Java3- Operators in Java
3- Operators in Java
 

Recently uploaded

Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEroselinkalist12
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxbritheesh05
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...asadnawaz62
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 

Recently uploaded (20)

Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
Design and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdfDesign and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdf
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptx
 
POWER SYSTEMS-1 Complete notes examples
POWER SYSTEMS-1 Complete notes  examplesPOWER SYSTEMS-1 Complete notes  examples
POWER SYSTEMS-1 Complete notes examples
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 

2. operators in c

  • 2.  An operator is a symbol that causesAn operator is a symbol that causes specific mathematical or logicalspecific mathematical or logical manipulations to be performed.manipulations to be performed.  An operator is a function which is appliedAn operator is a function which is applied to operands to obtain a resultto operands to obtain a result  c = a + b Plus Operator which will Produce addition of A and B C OperatorsC Operators
  • 3.  Assignment OperatorAssignment Operator  Arithmetic OperatorsArithmetic Operators  Compound assignment operatorsCompound assignment operators  Relational / Comparison OperatorsRelational / Comparison Operators  Increment & Decrement OperatorsIncrement & Decrement Operators  Logical OperatorsLogical Operators  Special OperatorsSpecial Operators  Pointer OperatorsPointer Operators Operators CategoriesOperators Categories
  • 4.  Assignment operatorAssignment operator  The “equal to” symbol (=) is called asThe “equal to” symbol (=) is called as assignment operator. it is used to assignassignment operator. it is used to assign a value to a variable.a value to a variable.  It assigns the value of the expression onIt assigns the value of the expression on its right side to the variable on its leftits right side to the variable on its left side.side.  a = 10; C OperatorsC Operators
  • 5.  Arithmetic OperatorsArithmetic Operators • AdditionAddition c = a + bc = a + b • SubtractionSubtraction c = a - bc = a - b • MultiplicationMultiplication c = a * bc = a * b • DivisionDivision c = a / bc = a / b • RemainderRemainder c = a % bc = a % b C OperatorsC Operators
  • 6.  Relational (Comparison) OperatorsRelational (Comparison) Operators  The relational operators are used to test orThe relational operators are used to test or compare the value between two operands.compare the value between two operands.  >> Greater thanGreater than  << Less thanLess than  >=>= Greater than or equal toGreater than or equal to  <=<= Less than or equal toLess than or equal to  ! =! = Not equal toNot equal to  == == EqualityEquality C OperatorsC Operators
  • 7.  Increment and decrement operatorsIncrement and decrement operators  ++++ increases variable value by 1increases variable value by 1  ---- decreases variable value by 1decreases variable value by 1  SyntaxSyntax a++; //increase ‘a’ by 1//increase ‘a’ by 1 a--; //decrease ‘a’ by 1//decrease ‘a’ by 1 C OperatorsC Operators
  • 8.  Logical operatorsLogical operators  Logical operators are used to combineLogical operators are used to combine two or more relations. The logicaltwo or more relations. The logical operators are called Boolean operatorsoperators are called Boolean operators because the tests between values arebecause the tests between values are reduced to either true or false.reduced to either true or false.  OperatorOperator DescriptionDescription • &&&& ANDAND • |||| OROR • !! NOTNOT C OperatorsC Operators