SlideShare a Scribd company logo
Project Submitted
on
OPERATOR
By
Veena Bhagyawani

106/10,civil lines, Ajmer 305001
Website: www.dezyneecole.com
OPERATOR
Arithmetic
Scope
resolution

Relational

Memory
management

Logical

operator
Pointer to
member

Assignment

Special
operator

Inc/Dec

Conditional

Bitwise
A=10;
B=5;

A+b
A-b

A*b

A/b
A%b
RELATIONAL OPERATOR
A=10;
B=5;

A

A

B
B

A

B

A

B

A
A

B
B
LOGICAL OPERATOR
Logical &&
 Logical
||
 Logical
!




Example
A=5
B=2
x=10
A>b&& x==10
ASSIGNMENT OPERATORS
Expr 1 = Expr 1 op Expr2

Expr1 op= Expr 2

sum = sum + i ;

sum += i ;

x = x * y + 1;

x *= y + 1;
x = x * (y+1)
INCREMENT & DECREMENT OPERATOR


Operator
++, -Prefix operator


n = 10;
x = ++n;
x= --n;



ans.11
ans. 9

Postfix operator
n = 20;
x = n++;
x=n--;

ans.20
ans.20
THE CONDITIONAL OPERATOR


Operator



Expr1 ? Expr2 : Expr3 (3 Terms Operator)

if (x > y) max = x;
else max = y;

max = x > y ? x : y ;
BITWISE OPERATOR

Operator

Meaning
&

And

|

Or

^

X or

<<

Left shift

>>

Right shift
SPECIAL OPERATOR


Size of operator



Example

#include <iostream.ha>
#include <conio.h>
Void main()
{
int a;
clrscr();
cout<<sizeof(a);
getch();
}
POINTER TO MEMBER OPERATOR

1): : *

to declare a pointer through of member of

class

2)* *

To express a member using object name to
the member

3)

’ To access a member using a pointer to the
object and a pointer to that member.
MEMORY MANAGEMENT
New
 Delete


Syntax

pointer variable=new data type[size]
Example
*p=new int[25]
SCOPE REZOULATION
#include<iostream.h>
#include<conio.h>
Void main()
{
int a=15;
main()
{
int a;
a=20;
cout<<“a:”<<a;
cout<<“::a”;<<:: a;
getch();
}
THANK YOU
Presented By
Veena Bhagyawani
B.C.A 2nd Year

More Related Content

Viewers also liked

Disfruta de Coruña
Disfruta de CoruñaDisfruta de Coruña
Disfruta de Coruña
alumna3bmc
 
Basic computer concepts
Basic computer conceptsBasic computer concepts
Basic computer concepts
veena_bhagyawani
 
E-commerce
E-commerce E-commerce
E-commerce
veena_bhagyawani
 
Presentation1
Presentation1Presentation1
Presentation1
Diana Purice
 
Proyecto Fin de Carrera
Proyecto Fin de CarreraProyecto Fin de Carrera
Proyecto Fin de Carrera
Agustín García Pérez
 
Levenslijn
LevenslijnLevenslijn
Levenslijn
brugginklaura
 
DBMS
DBMSDBMS
Pla d'operacions
Pla d'operacionsPla d'operacions
Pla d'operacionsSaraLlop27
 
7 grzechów e-commerce
7 grzechów e-commerce7 grzechów e-commerce
7 grzechów e-commerce
Rocket Studio
 
Plafinancer i economic fast and go
Plafinancer i economic fast and goPlafinancer i economic fast and go
Plafinancer i economic fast and goSaraLlop27
 
4 narzędzia do synchronizacji plików w firmie
4 narzędzia do synchronizacji plików w firmie4 narzędzia do synchronizacji plików w firmie
4 narzędzia do synchronizacji plików w firmie
Rocket Studio
 
Computer fundamentals
Computer fundamentalsComputer fundamentals
Computer fundamentals
veena_bhagyawani
 
H LAUNCH
H LAUNCHH LAUNCH
Levenslijn
LevenslijnLevenslijn
Levenslijn
brugginklaura
 
Java
JavaJava
AEMPS Clinical Trials Teleportal training course mute
AEMPS Clinical Trials Teleportal training course muteAEMPS Clinical Trials Teleportal training course mute
AEMPS Clinical Trials Teleportal training course mute
Alta Tecnología y Educación
 
Fast goplafinancerieconomic
Fast goplafinancerieconomicFast goplafinancerieconomic
Fast goplafinancerieconomicSaraLlop27
 
Parveer mahal
Parveer mahalParveer mahal
Parveer mahal
PavieMahal
 
Networking
NetworkingNetworking
Networking
veena_bhagyawani
 

Viewers also liked (20)

Disfruta de Coruña
Disfruta de CoruñaDisfruta de Coruña
Disfruta de Coruña
 
Basic computer concepts
Basic computer conceptsBasic computer concepts
Basic computer concepts
 
E-commerce
E-commerce E-commerce
E-commerce
 
Presentation1
Presentation1Presentation1
Presentation1
 
Proyecto Fin de Carrera
Proyecto Fin de CarreraProyecto Fin de Carrera
Proyecto Fin de Carrera
 
Levenslijn
LevenslijnLevenslijn
Levenslijn
 
DBMS
DBMSDBMS
DBMS
 
Pla d'operacions
Pla d'operacionsPla d'operacions
Pla d'operacions
 
Herman Wildenvey
Herman WildenveyHerman Wildenvey
Herman Wildenvey
 
7 grzechów e-commerce
7 grzechów e-commerce7 grzechów e-commerce
7 grzechów e-commerce
 
Plafinancer i economic fast and go
Plafinancer i economic fast and goPlafinancer i economic fast and go
Plafinancer i economic fast and go
 
4 narzędzia do synchronizacji plików w firmie
4 narzędzia do synchronizacji plików w firmie4 narzędzia do synchronizacji plików w firmie
4 narzędzia do synchronizacji plików w firmie
 
Computer fundamentals
Computer fundamentalsComputer fundamentals
Computer fundamentals
 
H LAUNCH
H LAUNCHH LAUNCH
H LAUNCH
 
Levenslijn
LevenslijnLevenslijn
Levenslijn
 
Java
JavaJava
Java
 
AEMPS Clinical Trials Teleportal training course mute
AEMPS Clinical Trials Teleportal training course muteAEMPS Clinical Trials Teleportal training course mute
AEMPS Clinical Trials Teleportal training course mute
 
Fast goplafinancerieconomic
Fast goplafinancerieconomicFast goplafinancerieconomic
Fast goplafinancerieconomic
 
Parveer mahal
Parveer mahalParveer mahal
Parveer mahal
 
Networking
NetworkingNetworking
Networking
 

Similar to C++ operator

C operators and expression
C operators and expressionC operators and expression
C operators and expression
DhikhiT
 
C Operators
C OperatorsC Operators
Basic c operators
Basic c operatorsBasic c operators
Basic c operators
Anuja Lad
 
FP 201 Unit 2 - Part 3
FP 201 Unit 2 - Part 3FP 201 Unit 2 - Part 3
FP 201 Unit 2 - Part 3
rohassanie
 
Operators-computer programming and utilzation
Operators-computer programming and utilzationOperators-computer programming and utilzation
Operators-computer programming and utilzation
Kaushal Patel
 
Arithmetic operators
Arithmetic operatorsArithmetic operators
Arithmetic operators
Sumayyiah .
 
Unit 4
Unit 4Unit 4
Unit 4
rohassanie
 
Labsheet2 stud
Labsheet2 studLabsheet2 stud
Labsheet2 stud
rohassanie
 
Python as a calculator
Python as a calculatorPython as a calculator
Python as a calculator
HemantChaurasia8
 
Operators and expressions in C++
Operators and expressions in C++Operators and expressions in C++
Operators and expressions in C++
Neeru Mittal
 
5_Operators.pdf
5_Operators.pdf5_Operators.pdf
5_Operators.pdf
NiraliArora2
 
Lec13
Lec13Lec13
c++ Lecture 2
c++ Lecture 2c++ Lecture 2
c++ Lecture 2
sajidpk92
 
c++ program using All data type and operators
c++ program using All data type and operators c++ program using All data type and operators
c++ program using All data type and operators
AMUDHAJAY
 

Similar to C++ operator (14)

C operators and expression
C operators and expressionC operators and expression
C operators and expression
 
C Operators
C OperatorsC Operators
C Operators
 
Basic c operators
Basic c operatorsBasic c operators
Basic c operators
 
FP 201 Unit 2 - Part 3
FP 201 Unit 2 - Part 3FP 201 Unit 2 - Part 3
FP 201 Unit 2 - Part 3
 
Operators-computer programming and utilzation
Operators-computer programming and utilzationOperators-computer programming and utilzation
Operators-computer programming and utilzation
 
Arithmetic operators
Arithmetic operatorsArithmetic operators
Arithmetic operators
 
Unit 4
Unit 4Unit 4
Unit 4
 
Labsheet2 stud
Labsheet2 studLabsheet2 stud
Labsheet2 stud
 
Python as a calculator
Python as a calculatorPython as a calculator
Python as a calculator
 
Operators and expressions in C++
Operators and expressions in C++Operators and expressions in C++
Operators and expressions in C++
 
5_Operators.pdf
5_Operators.pdf5_Operators.pdf
5_Operators.pdf
 
Lec13
Lec13Lec13
Lec13
 
c++ Lecture 2
c++ Lecture 2c++ Lecture 2
c++ Lecture 2
 
c++ program using All data type and operators
c++ program using All data type and operators c++ program using All data type and operators
c++ program using All data type and operators
 

Recently uploaded

Skybuffer AI: Advanced Conversational and Generative AI Solution on SAP Busin...
Skybuffer AI: Advanced Conversational and Generative AI Solution on SAP Busin...Skybuffer AI: Advanced Conversational and Generative AI Solution on SAP Busin...
Skybuffer AI: Advanced Conversational and Generative AI Solution on SAP Busin...
Tatiana Kojar
 
UI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentationUI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentation
Wouter Lemaire
 
Trusted Execution Environment for Decentralized Process Mining
Trusted Execution Environment for Decentralized Process MiningTrusted Execution Environment for Decentralized Process Mining
Trusted Execution Environment for Decentralized Process Mining
LucaBarbaro3
 
dbms calicut university B. sc Cs 4th sem.pdf
dbms  calicut university B. sc Cs 4th sem.pdfdbms  calicut university B. sc Cs 4th sem.pdf
dbms calicut university B. sc Cs 4th sem.pdf
Shinana2
 
Serial Arm Control in Real Time Presentation
Serial Arm Control in Real Time PresentationSerial Arm Control in Real Time Presentation
Serial Arm Control in Real Time Presentation
tolgahangng
 
Nunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdf
Nunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdfNunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdf
Nunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdf
flufftailshop
 
A Comprehensive Guide to DeFi Development Services in 2024
A Comprehensive Guide to DeFi Development Services in 2024A Comprehensive Guide to DeFi Development Services in 2024
A Comprehensive Guide to DeFi Development Services in 2024
Intelisync
 
Deep Dive: Getting Funded with Jason Jason Lemkin Founder & CEO @ SaaStr
Deep Dive: Getting Funded with Jason Jason Lemkin Founder & CEO @ SaaStrDeep Dive: Getting Funded with Jason Jason Lemkin Founder & CEO @ SaaStr
Deep Dive: Getting Funded with Jason Jason Lemkin Founder & CEO @ SaaStr
saastr
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Malak Abu Hammad
 
leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...
leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...
leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...
alexjohnson7307
 
Digital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying AheadDigital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying Ahead
Wask
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Tosin Akinosho
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Safe Software
 
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
saastr
 
Letter and Document Automation for Bonterra Impact Management (fka Social Sol...
Letter and Document Automation for Bonterra Impact Management (fka Social Sol...Letter and Document Automation for Bonterra Impact Management (fka Social Sol...
Letter and Document Automation for Bonterra Impact Management (fka Social Sol...
Jeffrey Haguewood
 
Azure API Management to expose backend services securely
Azure API Management to expose backend services securelyAzure API Management to expose backend services securely
Azure API Management to expose backend services securely
Dinusha Kumarasiri
 
System Design Case Study: Building a Scalable E-Commerce Platform - Hiike
System Design Case Study: Building a Scalable E-Commerce Platform - HiikeSystem Design Case Study: Building a Scalable E-Commerce Platform - Hiike
System Design Case Study: Building a Scalable E-Commerce Platform - Hiike
Hiike
 
Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)
Jakub Marek
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
innovationoecd
 
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptxOcean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
SitimaJohn
 

Recently uploaded (20)

Skybuffer AI: Advanced Conversational and Generative AI Solution on SAP Busin...
Skybuffer AI: Advanced Conversational and Generative AI Solution on SAP Busin...Skybuffer AI: Advanced Conversational and Generative AI Solution on SAP Busin...
Skybuffer AI: Advanced Conversational and Generative AI Solution on SAP Busin...
 
UI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentationUI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentation
 
Trusted Execution Environment for Decentralized Process Mining
Trusted Execution Environment for Decentralized Process MiningTrusted Execution Environment for Decentralized Process Mining
Trusted Execution Environment for Decentralized Process Mining
 
dbms calicut university B. sc Cs 4th sem.pdf
dbms  calicut university B. sc Cs 4th sem.pdfdbms  calicut university B. sc Cs 4th sem.pdf
dbms calicut university B. sc Cs 4th sem.pdf
 
Serial Arm Control in Real Time Presentation
Serial Arm Control in Real Time PresentationSerial Arm Control in Real Time Presentation
Serial Arm Control in Real Time Presentation
 
Nunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdf
Nunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdfNunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdf
Nunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdf
 
A Comprehensive Guide to DeFi Development Services in 2024
A Comprehensive Guide to DeFi Development Services in 2024A Comprehensive Guide to DeFi Development Services in 2024
A Comprehensive Guide to DeFi Development Services in 2024
 
Deep Dive: Getting Funded with Jason Jason Lemkin Founder & CEO @ SaaStr
Deep Dive: Getting Funded with Jason Jason Lemkin Founder & CEO @ SaaStrDeep Dive: Getting Funded with Jason Jason Lemkin Founder & CEO @ SaaStr
Deep Dive: Getting Funded with Jason Jason Lemkin Founder & CEO @ SaaStr
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
 
leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...
leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...
leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...
 
Digital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying AheadDigital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying Ahead
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
 
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
 
Letter and Document Automation for Bonterra Impact Management (fka Social Sol...
Letter and Document Automation for Bonterra Impact Management (fka Social Sol...Letter and Document Automation for Bonterra Impact Management (fka Social Sol...
Letter and Document Automation for Bonterra Impact Management (fka Social Sol...
 
Azure API Management to expose backend services securely
Azure API Management to expose backend services securelyAzure API Management to expose backend services securely
Azure API Management to expose backend services securely
 
System Design Case Study: Building a Scalable E-Commerce Platform - Hiike
System Design Case Study: Building a Scalable E-Commerce Platform - HiikeSystem Design Case Study: Building a Scalable E-Commerce Platform - Hiike
System Design Case Study: Building a Scalable E-Commerce Platform - Hiike
 
Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
 
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptxOcean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
 

C++ operator