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

How do you declare a set in c++?

546


When do we run a shell in the unix system? How will you tell which shell you are running?

560


How do you find out if a linked-list has an end? (I.e. The list is not a cycle)

615


What is a dll entry point?

571


Tell me what are static member functions?

624






What is a static element?

585


If a header file is included twice by mistake in the program, will it give any error?

563


Define virtual constructor.

653


what is a class? Explain with an example.

630


Describe new operator?

630


What is the full form of ios?

567


Which should be more useful: the protected and public virtuals?

608


Is it possible to pass an object of the same class in place of object reference to the copy constructor?

579


What is the difference between global variables and static varables?

582


Is c++ the most powerful language?

580