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

What is the real purpose of class – to export data?

618


Can a program run without main in c++?

589


Can recursive program be written in C++?

635


Write a code/algo to find the frequency of each element in an array?

608


How a pointer differs from a reference?

695






Write my own zero-argument manipulator that should work same as hex?

589


write a program that withdrawals,deposits,balance check,shows mini statement. (using functions,pointers and arrays)

1805


What is virtual table?

627


How do you clear a map in c++?

572


What is c++ virtual inheritance?

599


When do we run a shell in the unix system?

564


Why do we use pointers in c++?

594


What does the linker do?

597


What is the keyword auto for?

575


Which function should be used to free the memory allocated by calloc()?

594