Saturday 7 January 2012

Operators in C

C supports various operators to perform different kind of operations. 
With C operators, you can do arithmetic, compare data, modify variables, combine relationship logically... etc. C operators operates on one or more operands to produce a value.
Operators taking just one operand are called unary operators.
Operators requiring two operands are called binary opeartors.
Data itself is called as operands.
Types of operators are
1)Arithmetic Operators
supports almost common arithmetic operators such as +,-,* , / .     
            Continue reading.......
2)Modulus Operator
Modulus operator %.It is an unary operator..... 
              Continue reading.......
3)Unary Operators
Increment and Decrement Operators are called Unary Operators.....
.          Continue reading.......
4)Relational Operators
C provides you a list of relational opeartors to allows you to compare data. The relational operators enable you to check whethere two variables or expressions are equal, not equal, which one is greater or less than other......
             Continue reading.....
5)Logical Operators
C logical operators enable to combine relational operators or logical operators into one boolean result. C supports the negation (!), logical AND (&&), and logical OR (||).....
             Continue reading.....
6)Bitwise Operators
C provides you six bitwise operators including AND, inclusive OR, left shift, right shift and one's complement for bit manipulation.......
             Continue reading.....
7)Assignment Operators
C assignment operators are used to assigned the value of a variable or expression to a variable..... 
             Continue reading.....
8)Conditional Operator
C ternary operator is sometimes called conditional operator or trinary operator because it is a shorthand of combination of the if-else and return statement and has three operands........ 
             Continue Reading......

No comments:

Post a Comment

host gator coupon