OPerator & Expression

 operator & Expression  

An operator specifies an operator to be perfomed that yield a valueThe variable   constant can be joined by various operator to form an expression .an operand is a data item on which an operator acts .some operator requires  two oprend s,while other act upon only ane operand .C includes a large number   of operend which fall under several different catogories ,which are as –

1.Arithmetic operator
2.Relational operator
3.logical operator
4.Assignment operator
5.Ternary operator
6.Bitwise operator
7.increment or Decrement operator

Arithmetic operators are used for numeric calculation .They are two types

1.unary arithmetic
2.binary arithmetic
1.unary arithmetic
 +x –y
Here ‘-‘ changes the sign of the operand y.
2.binary arithmetic
 it require two operand .There are five operators   for binary arithmetic.

Operator           meaning                purpose
+                           plus                         addition
-                            minus                      subtraction
*                            asterisk                    multiplication
/                           slash                           division
%                          percent                        division

%(modules operator ) cannot be applied with floating point number .There is no exponent operator in C.how ever there is a library function to carry out exponent.






Here ‘a’ and ‘b’ are two operands

Print | posted on Saturday, December 1, 2012 5:21 PM

Advertisements at BlogUnlimited.com


# re: OPerator & Expression

Left by rakesh kumar mohanty at 12/12/2012 5:16 PM
i like this ............guddi ji

Your comment:

Please add 6 and 7 and type the answer here:

Copyright © Afsana Bano

Design by Bartosz Brzezinski

Design by Phil Haack Based On A Design By Bartosz Brzezinski

Advertisements at BlogUnlimited.com