SlideShare a Scribd company logo
2
Most read
operator ppt.ppt
SUBJECT-OPERATORS IN C LANGUAGE:
Presented by-
Sanjay kushwaha
 Operators in C:
 An operator is a symbol which
operates on a value or a variable. For
example: + is an operator to perform
addition.
C programming has wide range of operators to
perform various operations. For better
understanding of operators, these operators can be
classified as:
i. Arithmetic Operators
ii. Increment and Decrement Operators
iii. Assignment Operators
iv. Relational Operators
 Operator Meaning of Operator
 + addition or unary plus
 - subtraction or unary minus
 * multiplication
 / division
 % remainder after
division( modulo division)
1. C programming has two operators increment
++ and decrement -- to change the value of an
operand (constant or variable) by 1.
2. Increment ++ increases the value by 1
whereas decrement -- decreases the value by 1.
3. These two operators are unary operators,
meaning they only operate on a single operand.
egg. into a=10, b=100
++a = 11
--b = 99
 An assignment operator is used for
assigning a value to a variable. The most
common assignment operator is =
 Operator Example Same as
 = a = b a = b
 += a += b a = a+b
 -= a -= b a = a-b
 *= a *= b a = a*b
 /= a /= b a = a/b
 %= a %= b a = a%b
 A relational operator checks the relationship between
two operands. If the relation is true, it returns 1; if the
relation is false, it returns value 0.
 Relational operators are used in decision making and
loops.
Operator Meaning of Operator Example
 == Equal to 5 == 3 returns 0
 > Greater than 5 > 3 returns
1
 < Less than 5 < 3 returns 0
 != Not equal to 5 != 3 returns
1
 >= Greater than or equal to 5 >= 3 returns 1
 <= Less than or equal to 5 <= 3 return 0
Thank you

More Related Content

PPT
Basics of C.ppt this is basic information about the c programming language
PPTX
C Operators
PPTX
Basic c operators
PPTX
What are operators?
ODP
Operators
PPTX
Operators and expressions in C++
PPTX
Opeartor &amp; expression
PPTX
c programming2.pptx
Basics of C.ppt this is basic information about the c programming language
C Operators
Basic c operators
What are operators?
Operators
Operators and expressions in C++
Opeartor &amp; expression
c programming2.pptx

Similar to operator ppt.ppt (20)

PPTX
Operators and Expressions
PDF
Coper in C
PDF
C++ revision tour
PPTX
ComputerProgrammingVarialblesanddeclaration.pptx
PPTX
Operator of C language
DOCX
PPS 2.2.OPERATORS ARITHMETIC EXPRESSIONS/ARITHMETIC OPERATORS/RELATIONAL OPER...
PDF
C++ revision tour
PPTX
operator (1).pptx
PPTX
This slide contains information about Operators in C.pptx
PDF
Module2.1_Programming_Branching_and_looping.pdf
PDF
Chapter 5 - Operators in C++
PPTX
lecture4 pgdca.pptx
PDF
Unit ii chapter 1 operator and expressions in c
PPTX
Opreator In "C"
PPTX
Operators in Python
PPTX
Operators and it's type
PPT
Operator & Expression in c++
PPT
operator
PPT
Fundamentals of Programming Chapter 5
Operators and Expressions
Coper in C
C++ revision tour
ComputerProgrammingVarialblesanddeclaration.pptx
Operator of C language
PPS 2.2.OPERATORS ARITHMETIC EXPRESSIONS/ARITHMETIC OPERATORS/RELATIONAL OPER...
C++ revision tour
operator (1).pptx
This slide contains information about Operators in C.pptx
Module2.1_Programming_Branching_and_looping.pdf
Chapter 5 - Operators in C++
lecture4 pgdca.pptx
Unit ii chapter 1 operator and expressions in c
Opreator In "C"
Operators in Python
Operators and it's type
Operator & Expression in c++
operator
Fundamentals of Programming Chapter 5
Ad

Recently uploaded (20)

PDF
How Creative Agencies Leverage Project Management Software.pdf
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PDF
medical staffing services at VALiNTRY
PPTX
Essential Infomation Tech presentation.pptx
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PPTX
Reimagine Home Health with the Power of Agentic AI​
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PDF
PTS Company Brochure 2025 (1).pdf.......
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
Nekopoi APK 2025 free lastest update
PDF
Understanding Forklifts - TECH EHS Solution
PDF
Softaken Excel to vCard Converter Software.pdf
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PDF
top salesforce developer skills in 2025.pdf
PDF
How to Migrate SBCGlobal Email to Yahoo Easily
How Creative Agencies Leverage Project Management Software.pdf
VVF-Customer-Presentation2025-Ver1.9.pptx
medical staffing services at VALiNTRY
Essential Infomation Tech presentation.pptx
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
2025 Textile ERP Trends: SAP, Odoo & Oracle
Reimagine Home Health with the Power of Agentic AI​
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
Design an Analysis of Algorithms II-SECS-1021-03
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PTS Company Brochure 2025 (1).pdf.......
Adobe Illustrator 28.6 Crack My Vision of Vector Design
How to Choose the Right IT Partner for Your Business in Malaysia
Nekopoi APK 2025 free lastest update
Understanding Forklifts - TECH EHS Solution
Softaken Excel to vCard Converter Software.pdf
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
top salesforce developer skills in 2025.pdf
How to Migrate SBCGlobal Email to Yahoo Easily
Ad

operator ppt.ppt

  • 2. SUBJECT-OPERATORS IN C LANGUAGE: Presented by- Sanjay kushwaha
  • 3.  Operators in C:  An operator is a symbol which operates on a value or a variable. For example: + is an operator to perform addition.
  • 4. C programming has wide range of operators to perform various operations. For better understanding of operators, these operators can be classified as: i. Arithmetic Operators ii. Increment and Decrement Operators iii. Assignment Operators iv. Relational Operators
  • 5.  Operator Meaning of Operator  + addition or unary plus  - subtraction or unary minus  * multiplication  / division  % remainder after division( modulo division)
  • 6. 1. C programming has two operators increment ++ and decrement -- to change the value of an operand (constant or variable) by 1. 2. Increment ++ increases the value by 1 whereas decrement -- decreases the value by 1. 3. These two operators are unary operators, meaning they only operate on a single operand. egg. into a=10, b=100 ++a = 11 --b = 99
  • 7.  An assignment operator is used for assigning a value to a variable. The most common assignment operator is =  Operator Example Same as  = a = b a = b  += a += b a = a+b  -= a -= b a = a-b  *= a *= b a = a*b  /= a /= b a = a/b  %= a %= b a = a%b
  • 8.  A relational operator checks the relationship between two operands. If the relation is true, it returns 1; if the relation is false, it returns value 0.  Relational operators are used in decision making and loops. Operator Meaning of Operator Example  == Equal to 5 == 3 returns 0  > Greater than 5 > 3 returns 1  < Less than 5 < 3 returns 0  != Not equal to 5 != 3 returns 1  >= Greater than or equal to 5 >= 3 returns 1  <= Less than or equal to 5 <= 3 return 0