मराठी

Operators in C++

Advertisements
  • Introduction to Operators in C++
  • Arithmetic Operators
  • Increment and decrement operator
  • Relational Operator
  • Logical operator (Boolean Operator)
  • Conditional Operator
  • Assignment Operator
  • Shorthand (compound) Operators
  • Bitwise Operators
  • Operators dealing with Streams
  • Comma Operators 
  • The Size of Operators 
  • Scope Resolution Operator 
  • Memory Management Operators (new, delete)
  • Type cast operators 
  • Stream Manipulation Operators  
Maharashtra State Board: Class 11

Introduction to Operators in C++

An operator is a symbol that tells the computer to perform certain mathematical and logical manipulations. Operators are used in programs to manipulate data and variables. C++ has a rich set of operators. C++ has many operators , mainly classified as unary operators. working on single operand and binary

They are classified into the following categories. 

  • Arithmetic Operators
  • Increment and decrement operator
  • Relational Operator
  • Logical operator (Boolean Operator)
  • Conditional Operator
  • Assignment Operator
  • Shorthand (compound) Operators
  • Bitwise Operators
  • Operators dealing with Streams
  • Comma Operators 
  • The Size of Operators 
  • Scope Resolution Operator 
  • Memory Management Operators (new, delete)
  • Type cast operators 
  • Stream Manipulation Operators  

Arithmetic Operators

They are used for mathematical calculations. An arithmetic expression is made up of constants, variables, a combination of both, or a function call connected by arithmetic operators 

Operator  Meaning 
+ Addition or unary plus 
- Subtraction or unary minus
* Multiplication
/ Division 
% Modulo division

1) Unary Arithmetic Operator :
A unary arithmetic operator is an operator that operates on a single operand to perform an arithmetic operation.

For example : -a , +a , ++a , a--

2) Binary Arithmetic Operator : 
A binary arithmetic operator is an operator that operates on two operands to perform a basic arithmetic operation
Following arithmetic operator:
+ Addition or plus 
- Subtraction or minus 
* Multiplication or star 
/ slash or division 

 

Advertisements
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×