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

PPT
Operators and Expressions in C++
PPTX
Operators and expressions
PPT
Operator & Expression in c++
PDF
Chapter 5 - Operators in C++
PPT
Operation and expression in c++
PPTX
Operators in c++
PPT
C Prog. - Operators and Expressions
PPTX
Operators in C & C++ Language
Operators and Expressions in C++
Operators and expressions
Operator & Expression in c++
Chapter 5 - Operators in C++
Operation and expression in c++
Operators in c++
C Prog. - Operators and Expressions
Operators in C & C++ Language

What's hot (20)

ODP
Operators
PPTX
Operators and expressions in C++
DOCX
C – operators and expressions
PPTX
Operators and Expressions in Java
PPT
Basic c operators
PPTX
Operator.ppt
PPTX
Expression and Operartor In C Programming
PPTX
Operators and Expression
PDF
Operators in c programming
PPTX
Operator in c programming
PPTX
Lecture 2 C++ | Variable Scope, Operators in c++
PPTX
Operators in C/C++
PPT
Operators in C++
PPT
PPTX
Operators in C Programming
PDF
Lecture03(c expressions & operators)
PPT
Types of operators in C
PPTX
COM1407: C Operators
PPTX
Operators and expressions in c language
Operators
Operators and expressions in C++
C – operators and expressions
Operators and Expressions in Java
Basic c operators
Operator.ppt
Expression and Operartor In C Programming
Operators and Expression
Operators in c programming
Operator in c programming
Lecture 2 C++ | Variable Scope, Operators in c++
Operators in C/C++
Operators in C++
Operators in C Programming
Lecture03(c expressions & operators)
Types of operators in C
COM1407: C Operators
Operators and expressions in c language
Ad

Viewers also liked (19)

PPTX
C++ Project: Point of Sales System for an Audio and Video Shop
PPTX
Activities on Operator Precedence and Associativity
PPTX
Operator Precedence and Associativity
PPT
Lecture 3
PPTX
PPTX
03. operators and-expressions
PPTX
Operators
PDF
Computer Fundamentals Chapter 11 pcp
PPTX
C++ ppt
PPT
Expectations (Algebra 1)
PDF
Intro to C++ - language
PDF
Employee Management System in C++
DOCX
12th CBSE Practical File
PPSX
C++ Programming Language
PPT
Intro. to prog. c++
PPTX
algebraic expression class VIII
PPTX
C++ ppt
PPT
Fundamentals Of Computer
PPT
basics of computer system ppt
C++ Project: Point of Sales System for an Audio and Video Shop
Activities on Operator Precedence and Associativity
Operator Precedence and Associativity
Lecture 3
03. operators and-expressions
Operators
Computer Fundamentals Chapter 11 pcp
C++ ppt
Expectations (Algebra 1)
Intro to C++ - language
Employee Management System in C++
12th CBSE Practical File
C++ Programming Language
Intro. to prog. c++
algebraic expression class VIII
C++ ppt
Fundamentals Of Computer
basics of computer system ppt
Ad

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

PPTX
OCA JAVA - 3 Programming with Java Operators
PDF
LPD PPT ON OPRATERS.pdf LPD PPT ON OPRATERS.pdf
PPTX
Python programming language introduction unit
PPTX
Java script session 4
PDF
Types of Operators in C
PPTX
operat in vb .pptx
PPTX
OPERATORS OF C++
PPTX
Operators in Python
PPT
4_A1208223655_21789_2_2018_04. Operators.ppt
PPT
9 cm604.10
PDF
c# operators
PPTX
Operators and Expressions
PPTX
L3 operators
PPTX
L3 operators
PPTX
L3 operators
PPT
hlukj6;lukm,t.mnjhgjukryopkiu;lyk y2.ppt
PDF
Coper in C
PPT
Py-Slides-2 (1).ppt
PPT
Py-Slides-2.ppt
OCA JAVA - 3 Programming with Java Operators
LPD PPT ON OPRATERS.pdf LPD PPT ON OPRATERS.pdf
Python programming language introduction unit
Java script session 4
Types of Operators in C
operat in vb .pptx
OPERATORS OF C++
Operators in Python
4_A1208223655_21789_2_2018_04. Operators.ppt
9 cm604.10
c# operators
Operators and Expressions
L3 operators
L3 operators
L3 operators
hlukj6;lukm,t.mnjhgjukryopkiu;lyk y2.ppt
Coper in C
Py-Slides-2 (1).ppt
Py-Slides-2.ppt

More from Pranav Ghildiyal (20)

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

Recently uploaded (20)

PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
01-Introduction-to-Information-Management.pdf
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
GDM (1) (1).pptx small presentation for students
PDF
Classroom Observation Tools for Teachers
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PDF
VCE English Exam - Section C Student Revision Booklet
PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPTX
Pharma ospi slides which help in ospi learning
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PPTX
Final Presentation General Medicine 03-08-2024.pptx
Microbial diseases, their pathogenesis and prophylaxis
01-Introduction-to-Information-Management.pdf
202450812 BayCHI UCSC-SV 20250812 v17.pptx
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
GDM (1) (1).pptx small presentation for students
Classroom Observation Tools for Teachers
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
VCE English Exam - Section C Student Revision Booklet
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Pharma ospi slides which help in ospi learning
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
O5-L3 Freight Transport Ops (International) V1.pdf
Pharmacology of Heart Failure /Pharmacotherapy of CHF
102 student loan defaulters named and shamed – Is someone you know on the list?
Final Presentation General Medicine 03-08-2024.pptx

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