SlideShare a Scribd company logo
2
Most read
Operators in C
 Arithmetic Operators
 Increment and Decrement Operators
Operators in C
Arithmetic Operators
Increment Decrement Operators
Relational Operators
Logical Operators
Bitwise Operators
Assignment Operators
Conditional Operators
Special Operators
An operator is a symbol that tells the compiler to perform specific mathematical
or logical functions. C language is rich in built-in operators and provides the
following types of operators-
Arithmetic Operators
Operator Description Example
+ Performs addition of two operands. A+B=15
- Performs subtraction of two operands.
Subtract second operand from first.
A-B=5
* Performs multiplication of two operands. A*B=50
/ Performs division of two operands and
produces quotient as a result.
A/B=2
% Performs division of two operands and
produces remainder as a result.
A%B=0
Arithmetic operators are binary operators, means that they take
two operands to perform operation.
Here we consider two variables A=10 and B=5
Arithmetic and increment decrement Operator
Increment and Decrement
Operators
 Increment and decrement operators are unary operators
means that they can take one operand to perform operation
on it.
 Increment operator add 1 to the variable and Decrement
operator subtracts 1 from the variable.
 Pre-increment and pre-decrement add and subtract 1 to
and from the variable first and then perform assignment
operation.
 Post-increment and post decrement do the assignment
operation first and then perform add and subtract 1 to and
from the variable.
Arithmetic and increment decrement Operator
Arithmetic and increment decrement Operator
Arithmetic and increment decrement Operator
Arithmetic and increment decrement Operator
THANK YOU

More Related Content

PDF
Types of Operators in C programming .pdf
PPTX
Opreator In "C"
PPTX
Cse lecture-4.1-c operators and expression
PPTX
This slide contains information about Operators in C.pptx
PPTX
operators.pptx
PPTX
3. C_OperatorsExpressions on c languyage.pptx
PPTX
operator (1).pptx
PPTX
Simran Roy Operator in Programming in C Language
Types of Operators in C programming .pdf
Opreator In "C"
Cse lecture-4.1-c operators and expression
This slide contains information about Operators in C.pptx
operators.pptx
3. C_OperatorsExpressions on c languyage.pptx
operator (1).pptx
Simran Roy Operator in Programming in C Language

Similar to Arithmetic and increment decrement Operator (20)

PPTX
Operator in programming in C engineering
PPTX
C language operators
PPT
Operators in c language
PPTX
C Operators
PPT
C operators ppt
PDF
Unit ii chapter 1 operator and expressions in c
PPTX
PPTX
Operators in c by anupam
PPTX
Operator in C language
ODP
Operators
PPTX
What are operators?
PPTX
C language operator
PPTX
C Operators and Control Structures.pptx
PDF
C Operators and Control Structures.pdf
PPTX
OPERATORS IN C.pptx
PDF
LPD PPT ON OPRATERS.pdf LPD PPT ON OPRATERS.pdf
PPTX
Precedence of operators IN C PROGRAMMING
PPTX
Basic operators and it's types in c languages
DOCX
C – operators and expressions
PPTX
operatorsincprogramming-190221094522.pptx
Operator in programming in C engineering
C language operators
Operators in c language
C Operators
C operators ppt
Unit ii chapter 1 operator and expressions in c
Operators in c by anupam
Operator in C language
Operators
What are operators?
C language operator
C Operators and Control Structures.pptx
C Operators and Control Structures.pdf
OPERATORS IN C.pptx
LPD PPT ON OPRATERS.pdf LPD PPT ON OPRATERS.pdf
Precedence of operators IN C PROGRAMMING
Basic operators and it's types in c languages
C – operators and expressions
operatorsincprogramming-190221094522.pptx
Ad

More from Megha Sharma (20)

PPTX
Designing Printed Circuit boards, Software Choices, The Design Process
PPTX
Manufacturing PCB, Etching board, milling board, Third party manufacturing, a...
PPTX
Business Model, make thing, sell thing, subscription, customization, Key Reso...
PPTX
Funding an IOT startup, Venture Capital, Government funding, Crowdfunding, Le...
PPTX
Sketch, Iterate and Explore, Nondigital Methods.
PPTX
CNC Milling, Software, Repurposing and Recycling.
PPTX
3D printing, Types of 3D printing: FDM, Laser Sintering, Powder bed, LOM, DLP.
PPTX
Laser Cutting, Choosing a laser cutter, Software, Hinges and joints.
PPTX
Memory management, Types of memory, Making the most of your RAM.
PPTX
Performance and Battery Life, Libraries, Debugging.
PPTX
Prototyping Embedded Devices: Arduino, Developing on the Arduino.
PPTX
Raspberry-Pi, Developing on Raspberry Pi, Difference between Arduino & Raspbe...
PPTX
Open Source versus Closed Source in IOT in IOT
PPTX
Why closed? Why Open? Mixing open and closed source
PPTX
Model Performance Metrics. Accuracy, Precision, Recall
PPTX
Graceful Degradation and Affordance in IOT
PPTX
Web thinking connected device, Small Pieces Loosely joined.
PPTX
Production & Mass Personalization, Changing Embedded Platform, Physical proto...
PPTX
Whose data is it anyways? Public vs Private data collection.
PPTX
Thinking about Prototyping: Sketching, Familiarity, Cost versus Ease of proto...
Designing Printed Circuit boards, Software Choices, The Design Process
Manufacturing PCB, Etching board, milling board, Third party manufacturing, a...
Business Model, make thing, sell thing, subscription, customization, Key Reso...
Funding an IOT startup, Venture Capital, Government funding, Crowdfunding, Le...
Sketch, Iterate and Explore, Nondigital Methods.
CNC Milling, Software, Repurposing and Recycling.
3D printing, Types of 3D printing: FDM, Laser Sintering, Powder bed, LOM, DLP.
Laser Cutting, Choosing a laser cutter, Software, Hinges and joints.
Memory management, Types of memory, Making the most of your RAM.
Performance and Battery Life, Libraries, Debugging.
Prototyping Embedded Devices: Arduino, Developing on the Arduino.
Raspberry-Pi, Developing on Raspberry Pi, Difference between Arduino & Raspbe...
Open Source versus Closed Source in IOT in IOT
Why closed? Why Open? Mixing open and closed source
Model Performance Metrics. Accuracy, Precision, Recall
Graceful Degradation and Affordance in IOT
Web thinking connected device, Small Pieces Loosely joined.
Production & Mass Personalization, Changing Embedded Platform, Physical proto...
Whose data is it anyways? Public vs Private data collection.
Thinking about Prototyping: Sketching, Familiarity, Cost versus Ease of proto...
Ad

Recently uploaded (20)

PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
cuic standard and advanced reporting.pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Empathic Computing: Creating Shared Understanding
PPTX
Spectroscopy.pptx food analysis technology
PDF
Encapsulation_ Review paper, used for researhc scholars
PPT
Teaching material agriculture food technology
DOCX
The AUB Centre for AI in Media Proposal.docx
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Approach and Philosophy of On baking technology
PDF
Machine learning based COVID-19 study performance prediction
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
MIND Revenue Release Quarter 2 2025 Press Release
Diabetes mellitus diagnosis method based random forest with bat algorithm
Building Integrated photovoltaic BIPV_UPV.pdf
cuic standard and advanced reporting.pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Empathic Computing: Creating Shared Understanding
Spectroscopy.pptx food analysis technology
Encapsulation_ Review paper, used for researhc scholars
Teaching material agriculture food technology
The AUB Centre for AI in Media Proposal.docx
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Approach and Philosophy of On baking technology
Machine learning based COVID-19 study performance prediction
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf

Arithmetic and increment decrement Operator

  • 1. Operators in C  Arithmetic Operators  Increment and Decrement Operators
  • 2. Operators in C Arithmetic Operators Increment Decrement Operators Relational Operators Logical Operators Bitwise Operators Assignment Operators Conditional Operators Special Operators An operator is a symbol that tells the compiler to perform specific mathematical or logical functions. C language is rich in built-in operators and provides the following types of operators-
  • 3. Arithmetic Operators Operator Description Example + Performs addition of two operands. A+B=15 - Performs subtraction of two operands. Subtract second operand from first. A-B=5 * Performs multiplication of two operands. A*B=50 / Performs division of two operands and produces quotient as a result. A/B=2 % Performs division of two operands and produces remainder as a result. A%B=0 Arithmetic operators are binary operators, means that they take two operands to perform operation. Here we consider two variables A=10 and B=5
  • 5. Increment and Decrement Operators  Increment and decrement operators are unary operators means that they can take one operand to perform operation on it.  Increment operator add 1 to the variable and Decrement operator subtracts 1 from the variable.  Pre-increment and pre-decrement add and subtract 1 to and from the variable first and then perform assignment operation.  Post-increment and post decrement do the assignment operation first and then perform add and subtract 1 to and from the variable.