Operator:
An operator is special symbol that that acts on operands to carry out certain computation .
Operand:
An operand can be a variable , constant .
c = a + b
where a , b , c are variables means they are operands
where + , = are operators
similarly
if
x = 2 * c
here x , 2 , c are operands but x , c are variables but 2 is constant
similarly * , = are operators
C has strength of 45 operators
1. simple
2. composite
simple operators are single operators i.e + , - , / , * , %
composite operators are operators with combination of more than one symbol i.e += , -= , *= , /=
No comments:
Post a Comment