What are the different operators in C++?

Answer Posted / swetcha

Addition: +
Subtraction: ?

Addition Assignment: +
Assignment:
Bitwise AND Assignment: &

Bitwise exclusive OR Assignment: ^
Bitwise inclusive OR Assignment: |
Division Assignment: /

Left shift assignment: <<
Modulus Assignment: %
Multiplication Assignment: *

Right shift assignment: >>
Subtraction Assignment: ?

Bitwise AND: &
Bitwise exclusive OR: ^
Bitwise inclusive OR: |

Logical
Logical AND: &&
Logical OR: ||

Miscellaneous
Comma: ,
Conditional: ? :
Pointer-to-member: .* or ?>*

Reference: &
Scope resolution: ::

Multiplicative
Division: /
Modulus: %
Multiplication: *

Postfix
Cast: ()
Function call: ( )
Member access: . and ?>

Postfix decrement: ??
Postfix increment: ++
Subscript: [ ]

Relational and Equality
Equality: ==
Greater than or equal to: >=
Greater than: >

Less than or equal to: <=
Less than: <
Not equal: !=

Shift
Left shift: <<
Right shift: >>

Unary
Address-of: &
delete
Indirection: *

Logical Negation: !
new
One's Complement: ~

Prefix decrement: ??
Prefix increment: ++
sizeof

Unary Plus Operator: +
Unary Negation Operator: -





Is This Answer Correct ?    16 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between Abstraction and encapsulation in C++?

570


Show the application of a dynamic array with the help of an example.

576


How can you tell what shell you are running on unix system?

627


What would happen on forgetting [], while deallocating an array through new?

625


What is a block in c++?

542






Explain the difference between static and dynamic binding of functions?

542


What are multiple inheritances (virtual inheritance)?

572


Why do we use iterators?

614


What is the hardest coding language to learn?

592


Can the operator == be overloaded for comparing two arrays consisting of characters by using string comparison?

554


Difference between pass by value and pass by reference?

589


Explain the auto storage classes in c++.

591


Can member functions be private?

588


What is pointer in c++ with example?

509


What is an orthogonal base class in c++?

647