- Assignment Operators
- Arithmetic Operators
- Relational Operators
- Logical Operators
- Bitwise Operators
- Misc Operators
Arithmetic Operators:
There are following arithmetic operators supported by C++ language:
Assume variable A holds 10 and variable B holds 20, then:
| Operator | Description | Example |
|---|---|---|
| + | Adds two operands | A + B will give 30 |
| - | Subtracts second operand from the first | A - B will give -10 |
| * | Multiplies both operands | A * B will give 200 |
| / | Divides numerator by de-numerator | B / A will give 2 |
| % | Modulus Operator and remainder of after an integer division | B % A will give 0 |
| ++ | Increment operator, increases integer value by one | A++ will give 11 |
| -- | Decrement operator, decreases integer value by one | A-- will give 9 |
Relational Operators:
There are following relational operators supported by C++ language
Assume variable A holds 10 and variable B holds 20, then:
| Operator | Description | Example |
|---|---|---|
| == | Checks if the values of two operands are equal or not, if yes then condition becomes true. | (A == B) is not true. |
| != | Checks if the values of two operands are equal or not, if values are not equal then condition becomes true. | (A != B) is true. |
| > | Checks if the value of left operand is greater than the value of right operand, if yes then condition becomes true. | (A > B) is not true. |
| < | Checks if the value of left operand is less than the value of right operand, if yes then condition becomes true. | (A < B) is true. |
| >= | Checks if the value of left operand is greater than or equal to the value of right operand, if yes then condition becomes true. | (A >= B) is not true. |
| <= | Checks if the value of left operand is less than or equal to the value of right operand, if yes then condition becomes true. | (A <= B) is true. |

nice blog :) , thanks for the informations about programming :)
ReplyDeleteHI . THANKS 4 THE INFO . IT HELP MY SISTER A LOT NEXT SEM . =))
ReplyDeleteVery helpful. :)
ReplyDeleteThanks a lot. this is very helpful for us, student!
ReplyDeleteoh. this is what i've looking for. thanks for posting this!!
ReplyDeleteNice blog !
ReplyDeletelaking tulong neto sa mga nag tatake ng programming .. :)
Nice blog. Very much helpful. :) Keep it up.
ReplyDeleteIt is easy to understand. This blog, helps me to learn more about programming. Specifically in operators. Good job.
ReplyDeleteNice blog startup, wating for more new posts!! (Y)
ReplyDeleteAba Ang Tindi naman ng Post ni Mam. :D
ReplyDeleteProgramming pa More. ^_^ God bless.
very helpful in programming..
ReplyDeletenice nice :)
ReplyDeletewow.. kaya mas trip ko ang c++ ee.. feeling ko mas pinadali ug codes kesa sa c.. pero sa tingin depende pa din sa gagamit kung saan sila madadalian.. :)
ReplyDeletebtw.. nice info.. sana mas marami pang info na katulad nito ang malagay sa blog na to..
nice blog. very informative :)
ReplyDeleteC++, mas mdali syang gamitin.. pra lang po SAKEN :))
ReplyDeleteIt's amazing!
ReplyDeleteSo informative.
ReplyDeleteKudos programming!
ReplyDeleteThis kind of Blog really helps students, especially those IT or computer programming courses, to know basic operators of C++ Language :) i hope for more useful and knowledgeable blogs form you :))
ReplyDeleteVery informative Blog. :D
ReplyDeletemalaking tulong to sa mga estudyante :D
ReplyDeleteNICE NICE NICE !
ReplyDeleteImpressive!
ReplyDeleteNice.
ReplyDeleteThis is really nice blog. The contents over here are so informative. For more on this topic, have a look here.. Arithmetical, Relational and Logical Operators – Object Oriented Programming (OOP) and Bitwise, Precedence and Special Operator – Object Oriented Programming (OOP)
ReplyDelete