This chapter examined the arithmetic operators provided by Visual Basic .NET. It also showed how some of the arithmetic operators have shorthand versions that you can use. It then explained what operator precedence is and how precedence can affect program statements. Next, the chapter explained that some operators have equal precedence levels and that the rules of associativity come into play to resolve such expressions. Finally, the chapter showed how you can use parentheses to alter the order of precedence and associativity.

It takes a little experience to become comfortable with the rules of precedence and associativity, but they play a crucial part in programming.

Visual Basic .NET. Primer Plus
Visual Basic .NET Primer Plus
ISBN: 0672324857
EAN: 2147483647
Year: 2003
Pages: 238
Authors: Jack Purdum

Similar book on Amazon © 2008-2017.
If you may any questions please contact us: