| << D.10.0- Miscellaneous Functions, Statements and Keywords | AppendixD | D.2.1- Assignment operator >> |
Operators
An operator acts on one or moreoperands when comparing, assigning, concatenating, calculating, and performinglogical operations.
Say you want to calculate thedifference between two variables A and B and save the result in variable C. These variables are the operands and to find thedifference you use the subtraction operator like this:
C= A – B
Here we used the assignmentoperator (=) to assign the difference between A and B, which was foundby using the subtraction operator (-). Operatorsare one of the single-most important parts of any programming language. Withoutthem, you would not be able to assign values to variables or performcalculations and comparisons! It would be a bit like a bicycle withoutpedals...
There are different types of operators and they eachserve a specific purpose, as you will see from the following.
| << D.10.0- Miscellaneous Functions, Statements and Keywords | AppendixD | D.2.1- Assignment operator >> |

RSS

