๐Ÿ•ท๏ธ Crawler Inspector

URL Lookup

Direct Parameter Lookup

Raw Queries and Responses

1. Shard Calculation

Query:
Response:
Calculated Shard: 106 (from laksa163)

2. Crawled Status Check

Query:
Response:

3. Robots.txt Check

Query:
Response:

4. Spam/Ban Check

Query:
Response:

5. Seen Status Check

โ„น๏ธ Skipped - page is already crawled

๐Ÿ“„
INDEXABLE
โœ…
CRAWLED
12 days ago
๐Ÿค–
ROBOTS ALLOWED

Page Info Filters

FilterStatusConditionDetails
HTTP statusPASSdownload_http_code = 200HTTP 200
Age cutoffPASSdownload_stamp > now() - 6 MONTH0.4 months ago
History dropPASSisNull(history_drop_reason)No drop reason
Spam/banPASSfh_dont_index != 1 AND ml_spam_score = 0ml_spam_score=0
CanonicalPASSmeta_canonical IS NULL OR = '' OR = src_unparsedNot set

Page Details

PropertyValue
URLhttps://www.includehelp.com/cpp-tutorial/arithmetic-operators-in-c-cpp.aspx
Last Crawled2026-03-25 18:07:41 (12 days ago)
First Indexed2020-06-03 07:30:53 (5 years ago)
HTTP Status Code200
Meta TitleArithmetic Operators in C/C++
Meta DescriptionC/C++ programming Arithmetic Operators: In this tutorial, we are going to learn about the various arithmetic operators with their usages, syntaxes and examples.
Meta Canonicalnull
Boilerpipe Text
Home ยป C++ programming language C/C++ programming Arithmetic Operators : In this tutorial, we are going to learn about the various arithmetic operators with their usages, syntaxes and examples. Submitted by IncludeHelp , on June 02, 2020 What are Arithmetic Operators in C/C++? Arithmetic operators are the special symbols that are used for the Arithmetic / Mathematical operations. These operators can be unary and binary. Following are the types of Arithmetic Operators , Arithmetic unary operators Arithmetic binary operators Arithmetic unary operators For the unary operations โ€“ we need only one operand. These are the operators, Unary plus (+) Unary minus (-) Syntax +a -a Example Input: int a = -10; Operation & Output: +a = -10 -a = 10 C++ program to demonstrate the example of arithmetic unary operators # include < iostream > using namespace std ; int main ( ) { int a = 10 ; int b = - 10 ; // printing the values cout < < " a: " < < a < < endl ; cout < < " b: " < < b < < endl ; // unary plus operations cout < < " +a: " < < + a < < endl ; cout < < " +b: " < < + b < < endl ; // unary minus operations cout < < " -a: " < < - a < < endl ; cout < < " -b: " < < - b < < endl ; return 0 ; } Output: a: 10 b: -10 +a: 10 +b: -10 -a: -10 -b: 10 Arithmetic binary operators For the binary operations โ€“ we need two operands. These are the operators, Operator Name Description + Plus operator Returns the addition of two operands. - Minus operator Returns the subtraction of two operands. * Multiplication operator Returns the multiplication (product) of two operands. / Divide operator Returns the result of the division of two operands i.e. returns the quotient of the division operation. % Modulus operator Returns the remainder of the division operation on two operands. Syntax a + b a - b a * b a / b a % b Example Input: int a = 10; int b = 3; Operation & Output: a + b = 13 a - b = 7 a * b = 30 a / b = 3 a % b = 1 C++ program to demonstrate the example of arithmetic binary operators # include < iostream > # include < cmath > // for fmod() func. using namespace std ; int main ( ) { int a = 10 ; int b = 3 ; // printing the values cout < < " a : " < < a < < endl ; cout < < " b : " < < b < < endl ; // arithmetic operations cout < < " a + b : " < < a + b < < endl ; cout < < " a - b : " < < a - b < < endl ; cout < < " a * b : " < < a * b < < endl ; cout < < " a / b : " < < a / b < < endl ; cout < < " a % b : " < < a % b < < endl ; cout < < endl ; float x = 10.23 f ; float y = 3.10 f ; // printing the values cout < < " x : " < < x < < endl ; cout < < " y : " < < y < < endl ; // arithmetic operations cout < < " x + y : " < < x + y < < endl ; cout < < " x - y : " < < x - y < < endl ; cout < < " x * y : " < < x * y < < endl ; cout < < " x / y : " < < x / y < < endl ; // % operator doesn't work with float values // use fmod() for this // cout << "x % y : " << x % y << endl; cout < < " fmod( " < < x < < " , " < < y < < " ) : " < < fmod ( x , y ) < < endl ; return 0 ; } Output: a : 10 b : 3 a + b : 13 a - b : 7 a * b : 30 a / b : 3 a % b : 1 x : 10.23 y : 3.1 x + y : 13.33 x - y : 7.13 x * y : 31.713 x / y : 3.3 fmod(10.23 , 3.1) : 0.93 Advertisement Advertisement
Markdownnull
Readable Markdown
[Home](https://www.includehelp.com/) ยป [C++ programming language](https://www.includehelp.com/cpp-tutorial) **C/C++ programming Arithmetic Operators**: In this tutorial, we are going to learn about the various arithmetic operators with their usages, syntaxes and examples. Submitted by **IncludeHelp**, on June 02, 2020 ## What are Arithmetic Operators in C/C++? **Arithmetic operators** are the special symbols that are used for the Arithmetic / Mathematical operations. These operators can be unary and binary. Following are the **types of Arithmetic Operators**, - Arithmetic unary operators - Arithmetic binary operators ## Arithmetic unary operators For the unary operations โ€“ we need only one operand. These are the operators, 1. Unary plus (+) 2. Unary minus (-) ### Syntax ``` +a -a ``` ### Example ``` Input: int a = -10; Operation & Output: +a = -10 -a = 10 ``` ### C++ program to demonstrate the example of arithmetic unary operators ``` #include <iostream> using namespace std; int main() { int a = 10; int b = -10; // printing the values cout << "a: " << a << endl; cout << "b: " << b << endl; // unary plus operations cout << "+a: " << +a << endl; cout << "+b: " << +b << endl; // unary minus operations cout << "-a: " << -a << endl; cout << "-b: " << -b << endl; return 0; } ``` **Output:** ``` a: 10 b: -10 +a: 10 +b: -10 -a: -10 -b: 10 ``` ## Arithmetic binary operators For the binary operations โ€“ we need two operands. These are the operators, | Operator | Name | Description | |---|---|---| | \+ | Plus operator | Returns the addition of two operands. | | \- | Minus operator | Returns the subtraction of two operands. | | \* | Multiplication operator | Returns the multiplication (product) of two operands. | | / | Divide operator | Returns the result of the division of two operands i.e. returns the quotient of the division operation. | | % | Modulus operator | Returns the remainder of the division operation on two operands. | ### Syntax ``` a + b a - b a * b a / b a % b ``` ### Example ``` Input: int a = 10; int b = 3; Operation & Output: a + b = 13 a - b = 7 a * b = 30 a / b = 3 a % b = 1 ``` ## C++ program to demonstrate the example of arithmetic binary operators ``` #include <iostream> #include <cmath> // for fmod() func. using namespace std; int main() { int a = 10; int b = 3; // printing the values cout << "a : " << a << endl; cout << "b : " << b << endl; // arithmetic operations cout << "a + b : " << a + b << endl; cout << "a - b : " << a - b << endl; cout << "a * b : " << a * b << endl; cout << "a / b : " << a / b << endl; cout << "a % b : " << a % b << endl; cout << endl; float x = 10.23f; float y = 3.10f; // printing the values cout << "x : " << x << endl; cout << "y : " << y << endl; // arithmetic operations cout << "x + y : " << x + y << endl; cout << "x - y : " << x - y << endl; cout << "x * y : " << x * y << endl; cout << "x / y : " << x / y << endl; // % operator doesn't work with float values // use fmod() for this // cout << "x % y : " << x % y << endl; cout << "fmod(" << x << " , " << y << ") : " << fmod(x, y) << endl; return 0; } ``` **Output:** ``` a : 10 b : 3 a + b : 13 a - b : 7 a * b : 30 a / b : 3 a % b : 1 x : 10.23 y : 3.1 x + y : 13.33 x - y : 7.13 x * y : 31.713 x / y : 3.3 fmod(10.23 , 3.1) : 0.93 ``` Advertisement Advertisement
Shard106 (laksa)
Root Hash1184066710662109106
Unparsed URLcom,includehelp!www,/cpp-tutorial/arithmetic-operators-in-c-cpp.aspx s443