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 difference between map and hashmap in c++?

553


Is sorted c++?

571


What are files in c++?

587


What is an overflow error?

615


How can you quickly find the number of elements stored in a static array? Why is it difficult to store linked list in an array?

579






Is c++ fully object oriented?

551


Are vectors passed by reference c++?

513


What is the most common mistake on c++ and oo projects?

515


What is the this pointer?

631


What is the difference between function overloading and operator overloading?

567


In which header file does one find isalpha() a) conio.h b) stdio.h c) ctype.h

673


How important is c++?

526


Explain virtual destructor?

671


What is function overriding in c++?

601


What is malloc in c++?

555