Page

D.2.0- Operators

  by NT Community Manager.
Last Updated  by NT Community Manager.  

PublicCategorized as Appendix D.

Not tagged.
<< D.10.0- Miscellaneous Functions, Statements and KeywordsAppendixDD.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 KeywordsAppendixDD.2.1- Assignment operator >>

Copyright © 2003 by Wiley Publishing, Inc.

Powered by Near-TimeTerms of Services | Privacy Policy | Security Policy |