The Operator
For computer programming, we need to variours type of mathematical, logical and relational opration. For this operation we need to use of +,-,*,/,>,<,= etc these character. These character is called the operator in our programming language. If we illustrate this in the right way to using these operator then we make any kind of expression.
There are many type of operation in C. Catagories of these operators is given bellow :
Operator type | Operator | Name |
Arithmatic operators | + - * / % | Addition Subtraction Multiplication Division modulus |
Relation operators | > < >= <= != == | Greater than Less than Greater than of equal to Less than of equal to Not equal to Equal to |
Logical operators | ! && || | NOT AND OR |
Bitwise operators | ~ & | ^ << >> | Bitwise complement Bitwise AND Bitwise OR Bitwise XOR Left shift Right shift |
Assignment operators | = ++ -- += -= *= /= %= &= |= ^= <<= >>= | Assignment Increment and assignment Decrement and assignment Add and assign Subtract and assign Multiply and assign Divide and assign Take modulus and assign Bitwise AND and assign Bitwise OR and assign Bitwise XOR and assign Left shift and assign Right shift and assign |
Seletion operators | ?: | if-then-else |
Written by “Shojib”
No comments:
Post a Comment