C++ Operators
Define Operators
A The operator is a symbol that tells the compiler to perform specified mathematical operation.
For Example
We use the “ + ” Operator add together two values
Int x= 4+5;
Some Operator
Arithmetic Operator
Assignment Operator
Comparison Operator
Logical Operator
Arithmetic Operator
This Video Explain Only Arithmetic Operator
SO Please subscribe to my channel like and share video Please.
Arithmetic Operator
Arithmetic Operators are used to performing mathematical operations.
For Example
+ , - , * , / , % , ++ , --
All the Arithmetic Operators
Arithmetic Operator
| Operator | Name | Description | Example |
|---|---|---|---|
| " + " | Add,Sum,Addition | Sum two Values | A+B |
| " - " | Subtraction | Subtracts one value to another | A-B |
| " * " | Multiplication | Multiply two values | A*B |
| % | Modulus | Return the division remainder | A%B |
| " / " | Division | Divided one Value to another | A/B |
| " ++ " | Increment | Increase the Value one | ++A |
| " -- " | Decrement | Decrement the Value one | --A |
Watch Video
For Example
//Arithmetic Operator
#include<iostream>
Using namespace std;
Main()
{
//Addition Operator
Int a=5;
Int b=3;
//create two variable
Cout<<a+b;
//output on Screen
//Same code use any mathematic function
}
Display
Output Screen: 8
Post a Comment
Virtually nothing is impossible in this world if you just put your mind to it and maintain a
positive attitude.