SlideShare a Scribd company logo
OperatorsOperators
inin
C ++C ++
Made By:- Pranav GhildiyalMade By:- Pranav Ghildiyal
Class :- ‘XI’ ‘B’Class :- ‘XI’ ‘B’
CBSE Class XI :- Operators in C++
ARITHEMATIC OPERATORS
PLEASE
NOTE :- C+
+ is case-
sensitive
a , A both
are
different
Unary plus
A= 5A= 5
Unary minus
-A = -5-A = -5
INCREMENT AND DECREMENT OPERATORINCREMENT AND DECREMENT OPERATORINCREMENT AND DECREMENT OPERATORINCREMENT AND DECREMENT OPERATOR
• These operators increase or decrease the
value of the operand by 1
• Increment increases by 1 while the decrement
decreases by 1
PREFIX VERSION
It follows the change then use rule i.e., it
first changes the value of the operand and
then use the new value to evaluate the
expression
POSTFIX VERSION
It follows the use then change rule i.e., it first
uses the new value of the operand in
evaluating the expression and then changes
the operands value
.
Operators that act upon two operands
are known as binary operators
Relational operators refer to the relationship that values can have with one another .
Relational operators don’t work with string. We can compare numbers and characters with
them. If the comparison results in true , the relational operators results in the value 1 else it
results in the value 0 (comparison results in false).
LOGICAL OPERATORSLOGICAL OPERATORS
Logical AND
The resulting expressions
gives the value 1 only if
both the original operands
are true
Logical OR
The resulting expressions
gives the value 1 if either
of the original operands
is true
Logical NOT
It is a unary operator. It
reverses the truth value of the
expression and gives true if
the expression is false
11 Logical OR and Logical AND has lower precedence than relational operatorsLogical OR and Logical AND has lower precedence than relational operators
22 Logical NOT has higher precedence over any relational or arithimatic operatorLogical NOT has higher precedence over any relational or arithimatic operator
Facts about operatorsFacts about operators
CONDITIONAL OPERATOR ( ? : ) OR TERNARY OPERATORCONDITIONAL OPERATOR ( ? : ) OR TERNARY OPERATORCONDITIONAL OPERATOR ( ? : ) OR TERNARY OPERATORCONDITIONAL OPERATOR ( ? : ) OR TERNARY OPERATOR
SOME OTHER OPERATORSSOME OTHER OPERATORS
COMPILE TIME OPERATOR
• It returns the length (in
bytes) of the variable / type
specified
COMMA OPERATOR
IntegerInteger 2 Bytes2 Bytes
CharacterCharacter 1 Bytes1 Bytes
FloatFloat 4 Bytes4 Bytes
DoubleDouble 8 Bytes8 Bytes
• It is used to string together
several group of expressions.
The result of the rightmost
expression becomes the value
of the total comma seprated
expression
SOME OTHER OPERATORSSOME OTHER OPERATORS
COMPILE TIME OPERATOR
• It returns the length (in
bytes) of the variable / type
specified
COMMA OPERATOR
IntegerInteger 2 Bytes2 Bytes
CharacterCharacter 1 Bytes1 Bytes
FloatFloat 4 Bytes4 Bytes
DoubleDouble 8 Bytes8 Bytes
• It is used to string together
several group of expressions.
The result of the rightmost
expression becomes the value
of the total comma seprated
expression

More Related Content

What's hot (20)

ODP
Operators
jayesh30sikchi
 
PPTX
Operators and expressions in C++
Neeru Mittal
 
DOCX
C – operators and expressions
Chukka Nikhil Chakravarthy
 
PPTX
Operators and Expressions in Java
Abhilash Nair
 
PPT
Basic c operators
Anuja Lad
 
PPTX
Operator.ppt
Darshan Patel
 
PPTX
Expression and Operartor In C Programming
Kamal Acharya
 
PPTX
Operators and Expression
shubham_jangid
 
PDF
Operators in c programming
savitamhaske
 
PPTX
Operator in c programming
Manoj Tyagi
 
PPTX
Lecture 2 C++ | Variable Scope, Operators in c++
Himanshu Kaushik
 
PPTX
Operators in C/C++
Shobi P P
 
PPT
Operators in C++
Sachin Sharma
 
PPT
Operators
Devi Pradeep Podugu
 
PPTX
Operators in C Programming
Jasleen Kaur (Chandigarh University)
 
PDF
Lecture03(c expressions & operators)
Dhaka University of Engineering & Technology(DUET)
 
PPT
Types of operators in C
Prabhu Govind
 
PPTX
COM1407: C Operators
Hemantha Kulathilake
 
PPTX
Operators and expressions in c language
tanmaymodi4
 
Operators
jayesh30sikchi
 
Operators and expressions in C++
Neeru Mittal
 
C – operators and expressions
Chukka Nikhil Chakravarthy
 
Operators and Expressions in Java
Abhilash Nair
 
Basic c operators
Anuja Lad
 
Operator.ppt
Darshan Patel
 
Expression and Operartor In C Programming
Kamal Acharya
 
Operators and Expression
shubham_jangid
 
Operators in c programming
savitamhaske
 
Operator in c programming
Manoj Tyagi
 
Lecture 2 C++ | Variable Scope, Operators in c++
Himanshu Kaushik
 
Operators in C/C++
Shobi P P
 
Operators in C++
Sachin Sharma
 
Operators in C Programming
Jasleen Kaur (Chandigarh University)
 
Lecture03(c expressions & operators)
Dhaka University of Engineering & Technology(DUET)
 
Types of operators in C
Prabhu Govind
 
COM1407: C Operators
Hemantha Kulathilake
 
Operators and expressions in c language
tanmaymodi4
 

Viewers also liked (19)

PPTX
C++ Project: Point of Sales System for an Audio and Video Shop
projectlearner
 
PPTX
Activities on Operator Precedence and Associativity
Nicole Ynne Estabillo
 
PPTX
Operator Precedence and Associativity
Nicole Ynne Estabillo
 
PPT
Lecture 3
Mohammed Saleh
 
PPTX
Matrices
marcelafernandagarzon
 
PPTX
03. operators and-expressions
Stoian Kirov
 
PPTX
Operators
moniammu
 
PDF
Computer Fundamentals Chapter 11 pcp
Saumya Sahu
 
PPTX
C++ ppt
Aneesh Gupta
 
PPT
Expectations (Algebra 1)
rfant
 
PDF
Intro to C++ - language
Jussi Pohjolainen
 
PDF
Employee Management System in C++
Jayant Gope
 
DOCX
12th CBSE Practical File
Ashwin Francis
 
PPSX
C++ Programming Language
Mohamed Loey
 
PPT
Intro. to prog. c++
KurdGul
 
PPTX
algebraic expression class VIII
Himani Priya
 
PPTX
C++ ppt
parpan34
 
PPT
Fundamentals Of Computer
Jack Frost
 
PPT
basics of computer system ppt
Suaj
 
C++ Project: Point of Sales System for an Audio and Video Shop
projectlearner
 
Activities on Operator Precedence and Associativity
Nicole Ynne Estabillo
 
Operator Precedence and Associativity
Nicole Ynne Estabillo
 
Lecture 3
Mohammed Saleh
 
03. operators and-expressions
Stoian Kirov
 
Operators
moniammu
 
Computer Fundamentals Chapter 11 pcp
Saumya Sahu
 
C++ ppt
Aneesh Gupta
 
Expectations (Algebra 1)
rfant
 
Intro to C++ - language
Jussi Pohjolainen
 
Employee Management System in C++
Jayant Gope
 
12th CBSE Practical File
Ashwin Francis
 
C++ Programming Language
Mohamed Loey
 
Intro. to prog. c++
KurdGul
 
algebraic expression class VIII
Himani Priya
 
C++ ppt
parpan34
 
Fundamentals Of Computer
Jack Frost
 
basics of computer system ppt
Suaj
 
Ad

Similar to CBSE Class XI :- Operators in C++ (20)

PPT
operators and expressions in c++
sanya6900
 
PPTX
ComputerProgrammingVarialblesanddeclaration.pptx
beenish75
 
PPTX
3. C_OperatorsExpressions on c languyage.pptx
iramulittihad
 
PPTX
This slide contains information about Operators in C.pptx
ranaashutosh531pvt
 
PPTX
OPERATORS OF C++
ANANT VYAS
 
PDF
C++ Expressions Notes
Prof Ansari
 
PPTX
operator (1).pptx
laptophp39
 
ODP
operators in c++
Kartik Fulara
 
ODP
operators in c++
Kartik Fulara
 
PPTX
Unit 1- PROGRAMMING IN C OPERATORS LECTURER NOTES
LeahRachael
 
PPTX
C Operators
Yash Modi
 
PPTX
Few Operator used in c++
sunny khan
 
PDF
Types of Operators in C
Thesis Scientist Private Limited
 
PPT
2. operators in c
amar kakde
 
PDF
Lecture 3 programming fundaments by abdul rauf.pdf
kevapom894
 
PDF
Types of Operators in C programming .pdf
RichardMathengeSPASP
 
PPTX
operators.pptx
ruchisuru20001
 
PPTX
Operators inc c language
Tanmay Modi
 
PPTX
Lecture - Operators in C++ (Book: Tony Gaddis).pptx
arshadfarhad08
 
PDF
4. operators in c programming by digital wave
RahulSharma4566
 
operators and expressions in c++
sanya6900
 
ComputerProgrammingVarialblesanddeclaration.pptx
beenish75
 
3. C_OperatorsExpressions on c languyage.pptx
iramulittihad
 
This slide contains information about Operators in C.pptx
ranaashutosh531pvt
 
OPERATORS OF C++
ANANT VYAS
 
C++ Expressions Notes
Prof Ansari
 
operator (1).pptx
laptophp39
 
operators in c++
Kartik Fulara
 
operators in c++
Kartik Fulara
 
Unit 1- PROGRAMMING IN C OPERATORS LECTURER NOTES
LeahRachael
 
C Operators
Yash Modi
 
Few Operator used in c++
sunny khan
 
Types of Operators in C
Thesis Scientist Private Limited
 
2. operators in c
amar kakde
 
Lecture 3 programming fundaments by abdul rauf.pdf
kevapom894
 
Types of Operators in C programming .pdf
RichardMathengeSPASP
 
operators.pptx
ruchisuru20001
 
Operators inc c language
Tanmay Modi
 
Lecture - Operators in C++ (Book: Tony Gaddis).pptx
arshadfarhad08
 
4. operators in c programming by digital wave
RahulSharma4566
 
Ad

More from Pranav Ghildiyal (20)

DOC
Lasers
Pranav Ghildiyal
 
PPT
Global warming :- A PowerPoint Presentation
Pranav Ghildiyal
 
DOC
A Report On Disaster Management
Pranav Ghildiyal
 
PPSX
Recycle and reuse of everyday material
Pranav Ghildiyal
 
PPT
Word of the day (may)
Pranav Ghildiyal
 
PPT
Boost your knowledge
Pranav Ghildiyal
 
DOC
CBSE Class XII Comp sc practical file
Pranav Ghildiyal
 
DOC
CBSE Class XII physics practical project on Metal detector
Pranav Ghildiyal
 
DOC
CBSE Class XII practical project on Rayon threads
Pranav Ghildiyal
 
DOC
Shopping mall
Pranav Ghildiyal
 
DOC
CBSE Class X Rise of nationalism in europe
Pranav Ghildiyal
 
DOCX
H1 n1 swine flu
Pranav Ghildiyal
 
PPTX
CBSE Class IX Social Studies ECONOMICS Poverty as a challenge
Pranav Ghildiyal
 
PPTX
CBSE Class IX Sciense Physics Sound
Pranav Ghildiyal
 
PPTX
CBSE Class IX Chemistry Natural resources
Pranav Ghildiyal
 
PPTX
CBSE Class IX SCIENCE CHEMISTRY Is matter around us pure
Pranav Ghildiyal
 
PPT
CBSE Class X Chemical reactions and equations
Pranav Ghildiyal
 
PPT
CBSE Class XI Chemistry :- Organic chemistry (Basics)
Pranav Ghildiyal
 
PPT
CBSE Class XI Maths Arthmetic progression
Pranav Ghildiyal
 
PPT
CBSE Class XI Maths Linear inequalities
Pranav Ghildiyal
 
Global warming :- A PowerPoint Presentation
Pranav Ghildiyal
 
A Report On Disaster Management
Pranav Ghildiyal
 
Recycle and reuse of everyday material
Pranav Ghildiyal
 
Word of the day (may)
Pranav Ghildiyal
 
Boost your knowledge
Pranav Ghildiyal
 
CBSE Class XII Comp sc practical file
Pranav Ghildiyal
 
CBSE Class XII physics practical project on Metal detector
Pranav Ghildiyal
 
CBSE Class XII practical project on Rayon threads
Pranav Ghildiyal
 
Shopping mall
Pranav Ghildiyal
 
CBSE Class X Rise of nationalism in europe
Pranav Ghildiyal
 
H1 n1 swine flu
Pranav Ghildiyal
 
CBSE Class IX Social Studies ECONOMICS Poverty as a challenge
Pranav Ghildiyal
 
CBSE Class IX Sciense Physics Sound
Pranav Ghildiyal
 
CBSE Class IX Chemistry Natural resources
Pranav Ghildiyal
 
CBSE Class IX SCIENCE CHEMISTRY Is matter around us pure
Pranav Ghildiyal
 
CBSE Class X Chemical reactions and equations
Pranav Ghildiyal
 
CBSE Class XI Chemistry :- Organic chemistry (Basics)
Pranav Ghildiyal
 
CBSE Class XI Maths Arthmetic progression
Pranav Ghildiyal
 
CBSE Class XI Maths Linear inequalities
Pranav Ghildiyal
 

Recently uploaded (20)

PDF
community health nursing question paper 2.pdf
Prince kumar
 
PPTX
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
PPTX
How to Manage Large Scrollbar in Odoo 18 POS
Celine George
 
PDF
People & Earth's Ecosystem -Lesson 2: People & Population
marvinnbustamante1
 
PPTX
Stereochemistry-Optical Isomerism in organic compoundsptx
Tarannum Nadaf-Mansuri
 
PDF
The History of Phone Numbers in Stoke Newington by Billy Thomas
History of Stoke Newington
 
PDF
Lesson 2 - WATER,pH, BUFFERS, AND ACID-BASE.pdf
marvinnbustamante1
 
PDF
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
PDF
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - GLOBAL SUCCESS - CẢ NĂM - NĂM 2024 (VOCABULARY, ...
Nguyen Thanh Tu Collection
 
PDF
Reconstruct, Restore, Reimagine: New Perspectives on Stoke Newington’s Histor...
History of Stoke Newington
 
PDF
DIGESTION OF CARBOHYDRATES,PROTEINS,LIPIDS
raviralanaresh2
 
PPTX
MENINGITIS: NURSING MANAGEMENT, BACTERIAL MENINGITIS, VIRAL MENINGITIS.pptx
PRADEEP ABOTHU
 
PPTX
grade 5 lesson matatag ENGLISH 5_Q1_PPT_WEEK4.pptx
SireQuinn
 
PDF
Generative AI: it's STILL not a robot (CIJ Summer 2025)
Paul Bradshaw
 
PPTX
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
PDF
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
PPTX
STAFF DEVELOPMENT AND WELFARE: MANAGEMENT
PRADEEP ABOTHU
 
PDF
LAW OF CONTRACT ( 5 YEAR LLB & UNITARY LLB)- MODULE-3 - LEARN THROUGH PICTURE
APARNA T SHAIL KUMAR
 
PPTX
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
PDF
The dynastic history of the Chahmana.pdf
PrachiSontakke5
 
community health nursing question paper 2.pdf
Prince kumar
 
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
How to Manage Large Scrollbar in Odoo 18 POS
Celine George
 
People & Earth's Ecosystem -Lesson 2: People & Population
marvinnbustamante1
 
Stereochemistry-Optical Isomerism in organic compoundsptx
Tarannum Nadaf-Mansuri
 
The History of Phone Numbers in Stoke Newington by Billy Thomas
History of Stoke Newington
 
Lesson 2 - WATER,pH, BUFFERS, AND ACID-BASE.pdf
marvinnbustamante1
 
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - GLOBAL SUCCESS - CẢ NĂM - NĂM 2024 (VOCABULARY, ...
Nguyen Thanh Tu Collection
 
Reconstruct, Restore, Reimagine: New Perspectives on Stoke Newington’s Histor...
History of Stoke Newington
 
DIGESTION OF CARBOHYDRATES,PROTEINS,LIPIDS
raviralanaresh2
 
MENINGITIS: NURSING MANAGEMENT, BACTERIAL MENINGITIS, VIRAL MENINGITIS.pptx
PRADEEP ABOTHU
 
grade 5 lesson matatag ENGLISH 5_Q1_PPT_WEEK4.pptx
SireQuinn
 
Generative AI: it's STILL not a robot (CIJ Summer 2025)
Paul Bradshaw
 
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
STAFF DEVELOPMENT AND WELFARE: MANAGEMENT
PRADEEP ABOTHU
 
LAW OF CONTRACT ( 5 YEAR LLB & UNITARY LLB)- MODULE-3 - LEARN THROUGH PICTURE
APARNA T SHAIL KUMAR
 
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
The dynastic history of the Chahmana.pdf
PrachiSontakke5
 

CBSE Class XI :- Operators in C++

  • 1. OperatorsOperators inin C ++C ++ Made By:- Pranav GhildiyalMade By:- Pranav Ghildiyal Class :- ‘XI’ ‘B’Class :- ‘XI’ ‘B’
  • 3. ARITHEMATIC OPERATORS PLEASE NOTE :- C+ + is case- sensitive a , A both are different Unary plus A= 5A= 5 Unary minus -A = -5-A = -5
  • 4. INCREMENT AND DECREMENT OPERATORINCREMENT AND DECREMENT OPERATORINCREMENT AND DECREMENT OPERATORINCREMENT AND DECREMENT OPERATOR • These operators increase or decrease the value of the operand by 1 • Increment increases by 1 while the decrement decreases by 1 PREFIX VERSION It follows the change then use rule i.e., it first changes the value of the operand and then use the new value to evaluate the expression POSTFIX VERSION It follows the use then change rule i.e., it first uses the new value of the operand in evaluating the expression and then changes the operands value
  • 5. . Operators that act upon two operands are known as binary operators
  • 6. Relational operators refer to the relationship that values can have with one another . Relational operators don’t work with string. We can compare numbers and characters with them. If the comparison results in true , the relational operators results in the value 1 else it results in the value 0 (comparison results in false).
  • 7. LOGICAL OPERATORSLOGICAL OPERATORS Logical AND The resulting expressions gives the value 1 only if both the original operands are true Logical OR The resulting expressions gives the value 1 if either of the original operands is true Logical NOT It is a unary operator. It reverses the truth value of the expression and gives true if the expression is false 11 Logical OR and Logical AND has lower precedence than relational operatorsLogical OR and Logical AND has lower precedence than relational operators 22 Logical NOT has higher precedence over any relational or arithimatic operatorLogical NOT has higher precedence over any relational or arithimatic operator Facts about operatorsFacts about operators
  • 8. CONDITIONAL OPERATOR ( ? : ) OR TERNARY OPERATORCONDITIONAL OPERATOR ( ? : ) OR TERNARY OPERATORCONDITIONAL OPERATOR ( ? : ) OR TERNARY OPERATORCONDITIONAL OPERATOR ( ? : ) OR TERNARY OPERATOR
  • 9. SOME OTHER OPERATORSSOME OTHER OPERATORS COMPILE TIME OPERATOR • It returns the length (in bytes) of the variable / type specified COMMA OPERATOR IntegerInteger 2 Bytes2 Bytes CharacterCharacter 1 Bytes1 Bytes FloatFloat 4 Bytes4 Bytes DoubleDouble 8 Bytes8 Bytes • It is used to string together several group of expressions. The result of the rightmost expression becomes the value of the total comma seprated expression
  • 10. SOME OTHER OPERATORSSOME OTHER OPERATORS COMPILE TIME OPERATOR • It returns the length (in bytes) of the variable / type specified COMMA OPERATOR IntegerInteger 2 Bytes2 Bytes CharacterCharacter 1 Bytes1 Bytes FloatFloat 4 Bytes4 Bytes DoubleDouble 8 Bytes8 Bytes • It is used to string together several group of expressions. The result of the rightmost expression becomes the value of the total comma seprated expression