Header Ads

Operators

C program generally supports operators which are listed below : -
subtraction(-), addition(+), multiplication(*), division(/), modular division(%)

It is important to note that modular division provides us remainder of the division as a answer
i.e.
x = 6 % 2; which is x = 0;
if it is
x = 6 / 2; which yields x = 3;

Assignment(=) it is often use to transfer the value are indicates the flow
In left side of assignment operator always has only one variable in right hand side one or more than one.
x = a+b-c; or x = a; is legal statement
while,
x + y = c; is a illegal statement

No comments